/* ==========================================================================
   BTV Crowdaa Migration - Frontend Styles
   Baseball TV France - Sporty, modern, clean design
   ========================================================================== */

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

.btv-front-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #163966;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header
   ========================================================================== */

.btv-front-header {
    background-color: #002866;
    padding: 20px;
    text-align: center;
}

.btv-front-logo {
    width: 180px;
    max-width: 180px;
    height: auto;
    display: inline-block;
}

/* Main Content
   ========================================================================== */

.btv-front-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.btv-front-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

/* Headings
   ========================================================================== */

.btv-front-heading {
    font-size: 24px;
    font-weight: 700;
    color: #163966;
    text-align: center;
    margin-bottom: 8px;
}

.btv-front-subtitle {
    font-size: 14px;
    color: #5a6a7e;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Email Display
   ========================================================================== */

.btv-front-email-display {
    background-color: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    color: #163966;
    font-weight: 500;
    margin-bottom: 24px;
    word-break: break-all;
}

/* Form
   ========================================================================== */

.btv-front-form {
    display: flex;
    flex-direction: column;
}

.btv-front-label {
    font-size: 13px;
    font-weight: 600;
    color: #163966;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btv-front-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #163966;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    margin-bottom: 16px;
}

.btv-front-input:focus {
    border-color: #002866;
    box-shadow: 0 0 0 3px rgba(0, 40, 102, 0.1);
}

/* OTP Input
   ========================================================================== */

.btv-front-otp-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 32px;
    letter-spacing: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #163966;
    background: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    margin-bottom: 24px;
}

.btv-front-otp-input:focus {
    border-color: #002866;
    box-shadow: 0 0 0 3px rgba(0, 40, 102, 0.1);
}

.btv-front-otp-input::placeholder {
    color: #cbd5e0;
    letter-spacing: 12px;
}

/* Password Toggle
   ========================================================================== */

.btv-front-password-wrap {
    position: relative;
    margin-bottom: 16px;
}

.btv-front-password-wrap .btv-front-input {
    padding-right: 50px;
    margin-bottom: 0;
}

.btv-front-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    line-height: 1;
    color: #8896a7;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btv-front-toggle-pwd:hover {
    opacity: 1;
}

/* Hint
   ========================================================================== */

.btv-front-hint {
    font-size: 12px;
    color: #8896a7;
    margin-bottom: 20px;
}

/* Buttons
   ========================================================================== */

.btv-front-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #cc000a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btv-front-btn:hover {
    background-color: #a80008;
}

.btv-front-btn:active {
    transform: scale(0.98);
}

/* Alerts
   ========================================================================== */

.btv-front-alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.btv-front-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btv-front-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Footer
   ========================================================================== */

.btv-front-footer {
    background-color: #002866;
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .btv-front-card {
        padding: 28px 20px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .btv-front-main {
        padding: 20px 0;
        align-items: flex-start;
    }

    .btv-front-heading {
        font-size: 20px;
    }

    .btv-front-otp-input {
        font-size: 24px;
        letter-spacing: 8px;
        padding: 14px 12px;
    }

    .btv-front-otp-input::placeholder {
        letter-spacing: 8px;
    }

    .btv-front-logo {
        width: 140px;
    }
}
