/* Jacksonville College - Password Reset Verification Page */
/* Exact branding from attendance.jacksonvillecollege.edu */

/* CSS Variables - Exact colors from attendance system */
:root {
    --jc-purple: #4B2E83;
    --jc-purple-dark: #2D1152;
    --jc-purple-very-dark: #170D24;
    --jc-purple-light: #F5F3F7;
    --jc-purple-header: #33215A;
    --jc-purple-text-light: #caafff;
    --jc-yellow: #FFD100;
    --jc-yellow-light: #fff3d6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--jc-purple-light);
    min-height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */

/* Main Header */
.header-main {
    background-color: var(--jc-purple-header);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Header (stacked) */
.header-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo-mobile {
    height: 4rem;
}

.title-nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    margin: 0;
}

/* Desktop Header (side by side) */
.header-desktop {
    display: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
}

.logo-left {
    display: flex;
    align-items: center;
    width: 25%;
}

.logo-desktop {
    height: 2.5rem;
}

.title-center {
    display: flex;
    justify-content: center;
    width: 50%;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    width: 25%;
    gap: 1.5rem;
}

.header-link {
    color: white;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-link:hover {
    color: var(--jc-yellow);
}

/* Yellow Divider */
.yellow-divider {
    height: 4px;
    background-color: var(--jc-yellow);
    width: 100%;
}

/* Header Subtitle */
.header-subtitle {
    background-color: var(--jc-purple);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.college-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.est-date {
    font-size: 0.875rem;
    color: var(--jc-yellow);
    margin: 0;
}

/* ===== MAIN CONTENT ===== */

#main-content {
    opacity: 1;
    transition: opacity 150ms ease-in-out;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Verification Card Container */
.verification-card-container {
    display: flex;
    flex-direction: column;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

/* Left Panel (Logo and Description) */
.card-left-panel {
    width: 100%;
    background-color: var(--jc-purple-very-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: white;
    min-height: 350px;
}

.panel-content {
    max-width: 28rem;
    text-align: center;
}

.panel-logo {
    height: 5rem;
    margin: 0 auto 1.25rem;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--jc-yellow);
}

.panel-description {
    color: var(--jc-purple-text-light);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.panel-divider {
    border-top: 1px solid var(--jc-yellow);
    width: 6rem;
    margin: 0 auto;
}

/* Right Panel (Verification Form) */
.card-right-panel {
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    min-height: 350px;
}

.form-container {
    width: 100%;
    max-width: 26rem;
}

/* Account Hint */
.account-hint {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Email Pill (Microsoft-style) */
.email-pill {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 1.5rem;
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.email-pill span {
    font-size: 0.875rem;
    color: #4b5563;
}

.verification-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.verification-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.email-bold {
    font-weight: 600;
    color: #1a1a1a;
}

/* Error Message */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.error-message i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.error-message > span,
.error-message > div {
    flex: 1;
    white-space: pre-line;
}

/* Code Input Styles */
.code-input-container {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.code-input {
    width: 3.25rem;
    height: 3.25rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: 2px solid #8b8b8b;
    border-radius: 0.375rem;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.code-input:hover {
    border-bottom: 3px solid var(--jc-purple);
}

.code-input:focus {
    border: 2px solid var(--jc-purple);
    box-shadow: 0 0 0 1px var(--jc-purple);
    outline: none;
}

.code-input.filled {
    border-color: var(--jc-purple);
    color: #1a1a1a;
}

/* Resend Link */
/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: var(--jc-purple);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background-color: #3d2566;
}

.submit-btn:active {
    background-color: #2d1a4d;
}

.resend-link {
    text-align: center;
}

.resend-link a {
    color: #0067b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.3s;
}

.resend-link a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===== CHOICE OPTIONS ===== */

.choice-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.choice-option:hover {
    border-color: var(--jc-purple);
    background-color: var(--jc-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.choice-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--jc-purple-light);
    color: var(--jc-purple);
    border-radius: 0.5rem;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.choice-option:hover .choice-icon {
    background-color: var(--jc-purple);
    color: white;
}

.choice-content {
    flex-grow: 1;
}

.choice-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jc-purple);
    margin-bottom: 0.25rem;
}

.choice-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.choice-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 1.25rem;
}

.choice-option:hover .choice-arrow {
    color: var(--jc-purple);
}

/* ===== BACK BUTTON ===== */

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--jc-purple);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: var(--jc-purple-light);
}

.back-button i {
    margin-right: 0.5rem;
}

/* ===== MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-container.modal-show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--jc-purple-header) 0%, var(--jc-purple) 100%);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-close:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-icon {
    margin-bottom: 1rem;
    animation: modalIconPop 0.5s ease;
}

@keyframes modalIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-message {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.modal-message strong {
    color: var(--jc-purple);
    font-weight: 600;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.modal-btn.btn-primary {
    background-color: var(--jc-purple);
    color: white;
}

.modal-btn.btn-primary:hover {
    background-color: var(--jc-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-btn.btn-primary:active {
    transform: translateY(0);
}

.modal-btn.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.modal-btn.btn-secondary:hover {
    background-color: #d1d5db;
}

.modal-btn.btn-danger {
    background-color: #ef4444;
    color: white;
}

.modal-btn.btn-danger:hover {
    background-color: #dc2626;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .modal-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* ===== STEP INDICATOR STYLES ===== */

.step-indicator {
    font-size: 0.875rem;
    color: var(--jc-purple);
    opacity: 0.75;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* ===== FOOTER STYLES ===== */

.footer {
    background-color: var(--jc-purple-dark);
    color: white;
    padding: 1rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.125rem 0;
    font-size: 0.875rem;
}

.footer-rights {
    font-size: 0.75rem;
}

.footer-divider {
    border-top: 1px solid var(--jc-yellow);
    width: 6rem;
    margin: 0.5rem auto 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Desktop */
@media (min-width: 768px) {
    .header-mobile {
        display: none;
    }

    .header-desktop {
        display: flex;
    }

    .verification-card-container {
        flex-direction: row;
    }

    .card-left-panel {
        width: 38%;
    }

    .card-right-panel {
        width: 62%;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .header-title {
        font-size: 1.875rem;
    }

    .verification-title {
        font-size: 1.5rem;
    }

    .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .code-input-container {
        gap: 0.375rem;
    }

    .card-right-panel {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .code-input {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }

    .code-input-container {
        gap: 0.25rem;
    }

    .verification-title {
        font-size: 1.25rem;
    }
}
