﻿/* ═══════════════════════════════════════════
   AUTH SHARED CSS (auth.css)
   Used by: Login, Register, Confirm Pages
═══════════════════════════════════════════ */

/* ── Base Page ── */
.auth-page {
    font-family: 'Eudoxus Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: calc(100vh - var(--nav-h, 60px));
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* ── Left Panel ── */
.auth-left-panel {
    flex: 1;
    background: #f1f3f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-hero-content {
    text-align: center;
    max-width: 440px;
    z-index: 2;
}

.auth-title {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.auth-accent {
    display: block;
    color: #5daad3;
    margin-top: 0.3rem;
}

.auth-brand {
    font-weight: 800;
    margin-left: 6px;
}

.auth-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.65;
}

/* ── Decoration (Left) ── */
.auth-left-decoration {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.07;
}

.auth-star {
    width: 280px;
    height: 280px;
    background: #6c757d;
    clip-path: polygon( 50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35% );
}

/* ── Right Panel ── */
.auth-right-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-form-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 3rem;
}

/* ── Header ── */
.auth-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.auth-header-icon {
    width: 32px;
    height: 32px;
    background: #5daad3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.auth-form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #9aacb8;
    margin-top: 0.3rem;
}

/* ── Inputs (Reusable) ── */
.auth-input {
    width: 100%;
    background-color: #ebf5ff;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #2c3e50;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .auth-input:focus {
        outline: none;
        background-color: #ffffff;
        border-color: #006bb7;
        box-shadow: 0 0 0 2px rgba(0, 107, 183, 0.18);
    }

/* ── Buttons ── */
.auth-btn {
    display: inline-block;
    width: 50%;
    height: 46px;
    background: #5daad3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(93,170,211,0.3);
}

    .auth-btn:hover {
        background: #3d8fb8;
        transform: translateY(-1px);
    }

    .auth-btn:disabled {
        background: #cbd5e0;
        cursor: not-allowed;
        box-shadow: none;
    }

/* ── Email Box ── */
.auth-email-box {
    margin: 0.75rem 0 1rem;
    padding: 12px 14px;
    background: #ebf5ff;
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
    word-break: break-all;
}

/* ── Resend Section ── */
.auth-resend-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
}

.auth-resend-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.auth-resend-timer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #5f6569;
}

/* ── Decoration Right ── */
.auth-right-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-deco-plus {
    position: absolute;
    top: 15%;
    right: 10%;
    font-size: 2.5rem;
    color: #5daad3;
    opacity: 0.25;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1024px) {
    .auth-form-wrapper {
        padding: 1rem 2rem;
    }
}

@media (max-width: 768px) {

    .auth-page {
       /* height: auto;
        min-height: 100vh;*/
        overflow: visible;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-left-panel {
        display: none;
    }

    .auth-right-panel {
/*        min-height: 100vh;*/
    }

    .auth-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 1.5rem 1.25rem;
    }

    .auth-form-title {
        font-size: 1.2rem;
    }

    .auth-btn {
        width:48% ;
        height: 44px;
    }
}
