@import url("https://fonts.googleapis.com/css2?family=Inter:wght@800;900&display=swap");
@import url('https://fonts.cdnfonts.com/css/product-sans');

/* auth.css — Shared styles for login.html and signup.html */

.auth-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: auto;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.auth-logo { font-family: "Inter", sans-serif !important; font-weight: 900 !important; letter-spacing: -1.5px !important;
    font-size: 3.0rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.auth-input {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.forgot-password {
    font-size: 0.85rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-end;
}

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

.btn-auth-submit {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #0b1c46;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth-submit:hover {
    background: #07122e;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider:not(:empty)::before {
    margin-right: 1rem;
}

.auth-divider:not(:empty)::after {
    margin-left: 1rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.terms-text {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.terms-text a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
    width: fit-content;
}

.btn-back:hover {
    color: #0f172a;
    transform: translateX(-4px);
}

.auth-error {
    color: #ef4444;
    font-size: 0.85rem;
    display: none;
    padding: 0.75rem;
    background-color: #fef2f2;
    border: 1px solid #f87171;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.auth-error strong {
    font-weight: 700;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.password-strength-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: #94a3b8;
}

/* Forgot Password Modal */
.forgot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: authFadeIn 0.2s ease;
}

.forgot-modal-overlay.active {
    display: flex;
}

.forgot-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    font-family: 'Product Sans', 'Google Sans', system-ui, sans-serif;
    animation: authSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.forgot-modal-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.forgot-modal-box p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.forgot-modal-box .auth-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.forgot-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.forgot-modal-cancel {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.forgot-modal-cancel:hover {
    background: #f1f5f9;
}

.forgot-modal-submit {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: none;
    background: #0b1c46;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.forgot-modal-submit:hover {
    background: #07122e;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
