/* ===== CSS VARIABLES ===== */
:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-white-50: rgba(255, 255, 255, 0.50);
    --color-white-80: rgba(255, 255, 255, 0.80);
    --color-white-20: rgba(255, 255, 255, 0.20);
    --color-black-44: rgba(0, 0, 0, 0.44);
    --color-white-06: rgba(255, 255, 255, 0.06);
    --color-focus: #4a90e2;
    
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-sm: 14px;
    --font-size-lg: 24px;
    
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 30px;
    
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-black);
    overflow-x: visible;
    min-height: 100vh;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FORM ELEMENTS RESET ===== */
input {
    margin: 0;
    padding: 0;
    border: 1px solid;
    font: inherit;
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    background: none;
    outline: none;
}

input:focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 1px;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    background: none;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--color-focus) !important;
    outline-offset: 2px !important;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ===== CHECKBOX STYLES ===== */
.terms-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.checkbox-custom {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--color-black-44);
    border: 1px solid var(--color-white-20);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--color-white);
    border-color: var(--color-white);
}

.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-input:checked + .checkbox-custom::after {
    display: block;
}

.terms-label {
    color: var(--color-white-50);
    font-size: 10px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.terms-link {
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.terms-link:hover {
    opacity: 0.8;
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== LAYOUT COMPONENTS ===== */
.background-image {
    width: 1440px;
    height: 300px;
    aspect-ratio: 24/5;
    background-image: url('./images/Background Image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.auth-logo {
    width: 258px;
    height: 45px;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.auth-title {
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
}


/* ===== FORM CONTAINER ===== */
.auth-form {
    display: flex;
    width: 100%;
    max-width: 390px;
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    background: var(--color-white-06);
    box-sizing: border-box;
    position: relative;
}

/* ===== INPUT SECTIONS ===== */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    align-self: stretch;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.input-label {
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.input-field {
    height: 35px;
    width: 100%;
    align-self: stretch;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-white-20);
    background: var(--color-black-44);
    padding: 0 12px;
    box-sizing: border-box;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--color-focus);
}

.input-field::placeholder {
    color: var(--color-white-50);
}

.forgot-password {
    color: var(--color-white-50);
    text-align: right;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--color-white-80);
}

/* ===== ACTIONS SECTION ===== */
.actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    align-self: stretch;
}

.submit-button {
    display: flex;
    height: 35px;
    padding: 9px 141px;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    align-self: stretch;
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.submit-button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-button:focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.submit-button-wide {
    padding: 9px 120px !important;
    white-space: nowrap;
}

.redirect-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.redirect-text {
    color: var(--color-white-50);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

.redirect-link {
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
}

.redirect-link:hover {
    color: var(--color-white-80);
    text-decoration: underline;
}

/* ===== DECORATIVE ELEMENTS ===== */
.blur-effect {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: 50%;
    filter: blur(57.65px);
    z-index: 1;
    opacity: 0.3;
}

/* ===== NAVIGATION ===== */
.back-button {
    color: var(--color-white-50);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    z-index: 2;
}

.back-button:hover {
    color: var(--color-white-80);
    text-decoration: underline;
}

.back-button:focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.warning-text {
    color: var(--color-white-50);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .auth-form {
        max-width: 90%;
        padding: var(--spacing-sm);
    }
    
    .background-image {
        width: 100%;
        height: 200px;
    }
    
    .submit-button {
        padding: 9px 20px;
    }
    
    .submit-button-wide {
        padding: 9px 15px !important;
    }
}

@media (max-width: 480px) {
    .auth-form {
        max-width: 95%;
        padding: var(--spacing-xs);
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .input-field {
        height: 40px;
    }
    
    .submit-button {
        height: 40px;
    }
}

