/* ========================================
   AUTH PAGES STYLES
   TradeSmart.live - Forgot/Reset Password, Register
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #000000;
    font-family: 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #d1d4dc;
    overflow: hidden;
    height: 100vh;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 70%;
    min-height: 70%;
    width: 70%;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Oval Mask */
.oval-mask {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 0 9999px #000000;
    pointer-events: none;
    z-index: 0;
}

/* Auth Card Overlay */
.auth-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: 380px;
    animation: fadeInOverlay 0.5s ease-out;
}

.auth-card {
    position: relative;
    background: rgba(30, 34, 45, 0.05);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(42, 46, 57, 0.3);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: fadeInElement 0.4s ease-out;
}

.auth-card:hover {
    background: rgba(30, 34, 45, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 46, 57, 0.6);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(41,98,255,0.2) 0%, transparent 50%, rgba(38,166,154,0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-card:hover::before {
    opacity: 1;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.auth-header h1 .t-trade { color: #ffffff; }
.auth-header h1 .t-smart { color: #00ff88; text-shadow: 0 0 20px rgba(0,255,136,0.5); }
.auth-header h1 .t-dot { color: #000000; text-shadow: none; }
.auth-header h1 .t-live {
    color: #ef5350;
    text-shadow: 0 0 15px rgba(239,83,80,0.4);
    animation: livePulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(239,83,80,0.4);
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 25px rgba(239,83,80,0.8), 0 0 40px rgba(239,83,80,0.4);
        transform: scale(1.05);
    }
}

.auth-tagline {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Icon Badge */
.auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 106, 0.1) 100%);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
}

.auth-icon svg {
    width: 28px;
    height: 28px;
    color: #00ff88;
}

/* Form Styles */
.auth-form .field {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    font-size: 11px;
    color: #a0a4b0;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    background: rgba(19, 23, 34, 0.7);
    border: 1px solid rgba(42, 46, 57, 0.6);
    border-radius: 4px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.15s;
    backdrop-filter: blur(4px);
}

.auth-form textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: #787b86;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 4px;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #00ff99 0%, #00dd77 100%);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.auth-btn:disabled {
    background: #363a45;
    color: #787b86;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Messages */
.auth-error {
    background: rgba(239,83,80,0.1);
    border: 1px solid rgba(239,83,80,0.3);
    color: #ef5350;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 14px;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 14px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
    text-align: center;
}

.auth-success a {
    color: #00ff88;
    font-weight: 600;
    text-decoration: underline;
}

/* Links */
.auth-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 46, 57, 0.5);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-links a {
    color: #2962ff;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #5c8aff;
    text-decoration: underline;
}

.auth-links .separator {
    color: #363a45;
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 10px;
    color: #a0a4b0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.trust-badge svg {
    width: 12px;
    height: 12px;
    color: #26a69a;
}

/* Animations */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInElement {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE - TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .oval-mask {
        width: 80vw;
        height: 60vh;
    }

    .video-background video {
        width: 80%;
        min-width: 80%;
        min-height: 80%;
    }

    .auth-overlay {
        width: 360px;
    }

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

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
    .oval-mask {
        width: 90vw;
        height: 50vh;
    }

    .video-background video {
        width: 90%;
        min-width: 90%;
        min-height: 90%;
    }

    .auth-overlay {
        width: 90%;
        max-width: 380px;
    }

    .auth-card {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 18px;
    }

    .auth-tagline {
        font-size: 11px;
    }

    .auth-icon {
        width: 50px;
        height: 50px;
    }

    .auth-icon svg {
        width: 24px;
        height: 24px;
    }

    .auth-form input,
    .auth-form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .auth-btn {
        padding: 10px;
        font-size: 13px;
    }

    .trust-badge {
        font-size: 9px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .oval-mask {
        width: 95vw;
        height: 45vh;
        border-width: 1px;
    }

    .video-background video {
        width: 100%;
        min-width: 100%;
    }

    .auth-overlay {
        width: 95%;
    }

    .auth-card {
        padding: 16px;
        border-radius: 8px;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .auth-header h1 {
        font-size: 16px;
    }

    .auth-tagline {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .auth-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .auth-icon svg {
        width: 20px;
        height: 20px;
    }

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

    .auth-form label {
        font-size: 10px;
    }

    .auth-form input,
    .auth-form textarea {
        padding: 9px 10px;
        font-size: 12px;
    }

    .auth-btn {
        padding: 9px;
        font-size: 12px;
    }

    .auth-links {
        flex-direction: column;
        gap: 8px;
    }

    .auth-links .separator {
        display: none;
    }

    .trust-badge {
        font-size: 8px;
        margin-top: 12px;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .oval-mask {
        width: 50vw;
        height: 80vh;
    }

    .auth-overlay {
        width: 60%;
        max-width: 400px;
    }

    .auth-card {
        padding: 16px 24px;
    }

    .auth-header {
        margin-bottom: 12px;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .auth-icon svg {
        width: 18px;
        height: 18px;
    }
}
