:root {
    --primary-color: #007aff;
    --secondary-color: #0056b3;
    --background-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-color: #f5f5f7;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Smooth sticky behavior */
.sticky {
    will-change: transform;
}

/* Inputs base border */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="checkbox"] {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgb(229 231 235) !important;
    border-width: 2px !important;
}

/* Focused text/email/password */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

/* Email invalid (login) */
input[type="email"]:invalid {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}
input[type="email"]:invalid:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
}

/* Email invalid via .error (register) */
input[type="email"].error {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}
input[type="email"].error:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
}

/* Keep checkbox without blue focus ring (register) */
input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgb(243 244 246) !important;
}

/* Custom modern checkbox (register) */
.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custom-checkbox-label {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid rgb(229 231 235);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.custom-checkbox-label:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.custom-checkbox:checked + .custom-checkbox-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.custom-checkbox:checked + .custom-checkbox-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-checkbox:focus + .custom-checkbox-label {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Submit button color enforcement */
button[type="submit"] {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
button[type="submit"]:hover {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
}
button[type="submit"]:focus {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
button[type="submit"]:active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}


