/* ===================================
   Panorama Login & Reset Password Styles
   =================================== */

.panorama-login,
.panorama-reset-password,
.panorama-auth-choice {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #040608;
}

/* Hero Section */
.login-hero,
.reset-hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.35), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(118, 75, 162, 0.4), transparent 60%),
                linear-gradient(135deg, #060b1a 0%, #12072b 100%);
}

.login-hero__overlay,
.reset-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.login-hero__content,
.reset-hero__content {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    color: #ffffff;
    padding: 0 24px;
}

.login-hero__content h1,
.reset-hero__content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-hero__content p,
.reset-hero__content p {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.85;
}

/* Form Section */
.login-form-section,
.reset-form-section {
    margin-top: -60px;
    padding: 0 20px 80px;
}

.login-card,
.reset-card {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(22px);
    border-radius: 20px;
    padding: 42px;
    box-shadow: 0 30px 60px rgba(8, 12, 30, 0.45);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Form Styles */
form#panorama-login-form,
form#panorama-reset-request-form,
form#panorama-reset-password-form {
    display: grid;
    gap: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-message {
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.form-message[hidden] {
    display: none !important;
}

.form-field label {
    color: #f8fafc;
    font-weight: 600;
    font-size: 15px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"] {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #f8fafc;
    transition: all 0.25s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-field input::placeholder {
    color: rgba(203, 213, 225, 0.4);
}

.field-hint {
    font-size: 13px;
    color: rgba(203, 213, 225, 0.65);
    line-height: 1.4;
}

.field-error {
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.4;
    display: none;
}

.field-error:not(:empty) {
    display: block;
}

/* Checkbox Field */
.form-field--checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(30, 41, 59, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.checkbox-text {
    color: #e2e8f0;
    font-size: 14px;
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.login-submit,
.reset-submit {
    position: relative;
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.login-submit:hover,
.reset-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.login-submit:active,
.reset-submit:active {
    transform: translateY(0);
}

.login-submit:disabled,
.reset-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

button:disabled .loading-spinner {
    display: block;
}

button:disabled .submit-text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Form Links */
.form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-link {
    color: #a5b4fc;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.form-link-separator {
    color: rgba(203, 213, 225, 0.4);
    font-size: 14px;
}

/* Success Modal */
.reset-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-modal:not([hidden]) {
    opacity: 1;
}

.reset-modal[hidden] {
    display: none !important;
}

.reset-modal__dialog {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 40px 80px rgba(8, 12, 30, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.reset-modal:not([hidden]) .reset-modal__dialog {
    transform: scale(1);
}

.reset-modal__content {
    text-align: center;
}

.reset-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #4ade80;
}

.reset-modal__content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.reset-modal__content p {
    font-size: 15px;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.6;
    margin-bottom: 24px;
}

.reset-modal__cta {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.reset-modal__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

/* Auth Choice Page */
.auth-choice-hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.35), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(118, 75, 162, 0.4), transparent 60%),
                linear-gradient(135deg, #060b1a 0%, #12072b 100%);
}

.auth-choice-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.auth-choice-hero__content {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    color: #ffffff;
    padding: 0 24px;
}

.auth-choice-hero__content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-choice-hero__content p {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.85;
}

.auth-choice-cards {
    margin-top: -40px;
    padding: 0 20px 80px;
}

.auth-choice-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.auth-choice-card {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(22px);
    border-radius: 20px;
    padding: 42px;
    box-shadow: 0 30px 60px rgba(8, 12, 30, 0.45);
    border: 1px solid rgba(102, 126, 234, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.auth-choice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(8, 12, 30, 0.6);
    border-color: rgba(102, 126, 234, 0.5);
}

.auth-choice-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 20px;
    color: #a5b4fc;
}

.auth-choice-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.auth-choice-card p {
    font-size: 15px;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.6;
    margin-bottom: 28px;
}

.auth-choice-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-choice-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.auth-choice-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.auth-choice-btn--secondary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.auth-choice-btn--secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    .login-hero,
    .reset-hero,
    .auth-choice-hero {
        padding: 80px 0 50px;
    }

    .login-hero__content h1,
    .reset-hero__content h1,
    .auth-choice-hero__content h1 {
        font-size: 32px;
    }

    .login-hero__content p,
    .reset-hero__content p,
    .auth-choice-hero__content p {
        font-size: 16px;
    }

    .login-card,
    .reset-card {
        padding: 32px 24px;
    }

    .reset-modal__dialog {
        padding: 32px 24px;
    }

    .auth-choice-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-choice-card {
        padding: 32px 24px;
    }
}

