* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--auth-text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-container {
    width: 100%;
    max-width: 620px;
    padding: 2rem;
}

.login-card {
    background: rgba(var(--white-rgb), 0.03);
    border: 1px solid rgba(var(--white-rgb), 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--auth-label);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--auth-icon);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: 10px;
    color: var(--auth-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--auth-placeholder);
}

.input-wrapper input:focus {
    background: rgba(var(--white-rgb), 0.08);
    border-color: rgba(var(--white-rgb), 0.2);
    box-shadow: 0 0 0 3px rgba(var(--white-rgb), 0.05);
}

.input-wrapper:focus-within .input-icon {
    color: var(--auth-icon-hover);
}

.toggle-password,
.toggle-confirm-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--auth-icon);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover,
.toggle-confirm-password:hover {
    color: var(--auth-icon-hover);
}

.eye-icon {
    width: 18px;
    height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: 0.85rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--auth-label);
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(var(--white-rgb), 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(var(--white-rgb), 0.03);
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: rgba(var(--white-rgb), 0.15);
    border-color: rgba(var(--white-rgb), 0.3);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-text);
    border-radius: 2px;
}

.terms-link {
    color: var(--auth-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--color-text);
}

.forgot-link {
    color: var(--auth-label);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--auth-text);
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: rgba(var(--white-rgb), 0.1);
    border: 1px solid rgba(var(--white-rgb), 0.15);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    margin-top: 0.5rem;
}

.login-button:hover {
    background: rgba(var(--white-rgb), 0.15);
    border-color: rgba(var(--white-rgb), 0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--black-rgb), 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.login-button:hover .arrow-icon {
    transform: translateX(3px);
}

.signup-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--auth-link);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: var(--color-text);
}

.error-label {
    color: var(--color-error);
    font-weight: bold;
    margin-top: -0.5rem;
    margin-bottom: -1.0rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}
.checkbox-wrapper input:focus-visible + .checkmark {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}
