
/* BUILDTRACK AUTHENTICATION */

.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #17102b, #30204d, #51377b);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo h1 {
    margin: 0;
    color: #6546a5;
    font-size: 27px;
    letter-spacing: 1px;
}

.auth-logo p {
    margin: 6px 0 0;
    color: #777;
    font-size: 13px;
}

.auth-card h2 {
    color: #292235;
    margin-bottom: 6px;
}

.auth-card > div > p {
    color: #777;
}

.auth-card .form-field {
    margin-bottom: 16px;
}

.auth-card .form-field label {
    display: block;
    margin-bottom: 7px;
    color: #393244;
    font-weight: 600;
}

.auth-card .form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd5e9;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.auth-card .form-field input:focus {
    border-color: #6546a5;
    box-shadow: 0 0 0 2px rgba(101, 70, 165, 0.12);
}

.auth-card .save-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #6546a5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}

.auth-switch button {
    border: none;
    background: none;
    color: #6546a5;
    font-weight: 700;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #999;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e0eb;
}

.guest-btn {
    width: 100%;
    padding: 13px;
    border: 1px solid #6546a5;
    border-radius: 8px;
    background: #f7f4fc;
    color: #6546a5;
    font-weight: 600;
    cursor: pointer;
}

.guest-btn:hover {
    background: #eee8f8;
}

.auth-note {
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
}

.auth-message {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: #b42318;
}

.auth-card [hidden],
[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .auth-screen {
        padding: 16px;
    }

    .auth-card {
        padding: 25px 20px;
    }
}

/* Login options */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #625873;
    font-size: 13px;
    cursor: pointer;
}

.remember-option input {
    accent-color: #51416f;
    width: 15px;
    height: 15px;
}

#forgot-password {
    padding: 0;
    border: none;
    background: transparent;
    color: #655080;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 380px) {
    .login-options {
        gap: 8px;
    }
    
    .remember-option,
    #forgot-password {
        font-size: 12px;
    }
}

/* Prevent screen flash during session restoration */
html.guest-session-restoring #auth-screen,
html.guest-session-restoring #app-container {
    visibility: hidden;
}

