/* login.css - Premium Google Material Design 3 Edition */

:root {
    --card-bg: var(--md-sys-color-surface);
    --card-border: var(--md-sys-color-outline-variant);
    --primary-color: var(--md-sys-color-primary);
    --text-primary: var(--md-sys-color-on-surface);
    --text-secondary: var(--md-sys-color-on-surface-variant);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--surface-grey);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.login-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.8s var(--easing-std);
}

.login-card {
    width: 100%;
    max-width: 448px;
    background: var(--surface-white);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    /* MD3 Extra Large Corner */
    padding: 56px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--easing-std), box-shadow 0.3s var(--easing-std);
}

.login-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.headline-large {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.body-medium {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Material Design 3 Form Enhancements */
.form-group {
    margin-bottom: 24px;
}

/* Overriding global form styles for more premium feel */
.form-input {
    border-radius: 12px !important;
    height: 56px;
    padding-right: 48px !important;
    /* For the eye icon */
    background-color: var(--surface-grey) !important;
    border: 1px solid transparent !important;
}

.form-input:focus {
    background-color: var(--surface-white) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0 15px !important;
    padding-right: 47px !important;
}

.form-label {
    background-color: transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    background-color: var(--surface-white) !important;
    border-radius: 4px;
    padding: 0 4px;
    color: var(--primary-color) !important;
}

/* Password Toggle Icon Alignment Fix */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.2s;
    font-size: 22px !important;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Button Refinement */
.btn-primary {
    height: 48px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--primary-color);
    box-shadow: none;
    transition: all 0.3s var(--easing-std);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
    background-color: var(--google-blue-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Links */
a {
    transition: color 0.2s;
}

a:hover {
    color: var(--google-blue-hover);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px;
        border-radius: 0;
        border: none;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}