/* --- Default (Mobile-First) Styles --- */
html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    background: url('/statics/img/wallerpaper-register.png') no-repeat center center fixed;
    background-size: cover;
}

/* Mobile: Full white background for readability */
.registration-container {
    max-width: 100%;
    width: 100%;
    padding: 2.5rem 1.5rem;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Mobile: Full white background for readability */
.home-container {
    max-width: 100%;
    width: 100%;
    padding: 2.5rem 1.5rem;
    background-color: #ffffff;
    min-height: 100vh;
}

.logo {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 1.5px;
    color: #09090a;
    text-decoration: none;
    text-transform: none;
}

.page-title {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #343a40;
}

.form-control, .form-select {
    border-radius: 0;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa; 
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: #ff4a11;
    box-shadow: 0 0 0 0.25rem rgba(255, 74, 17, 0.25);
    background-color: #ffffff;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input:checked {
    background-color: #ff4a11;
    border-color: #ff4a11;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.btn-primary {
    background-color: #ff4a11;
    border-color: #ff4a11;
    color: #eaeaea;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.2rem;
}

.btn-primary:hover:not(:disabled) {
    background-color: #ff6a39;
    border-color: #ff6a39;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 74, 17, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background-color: #ff4a11;
    border-color: #ff4a11;
}

.legal-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.legal-text a {
    color: #ff4a11;
    text-decoration: none;
    font-weight: 600;
}

.legal-text a:hover {
    text-decoration: underline;
}

.signin-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.signin-link a {
    color: #09090a;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}

.signin-link a:hover {
    color: #ff4a11;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-error-message svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Password input wrapper for toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #343a40;
}

.password-toggle:focus {
    outline: none;
    color: #ff4a11;
}

/* Beta key input styling */
.beta-key-input {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* Battle tag input group styling */
.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus {
    border-right: none;
}

.input-group .form-control.is-invalid {
    border-right: none;
}

.battletag-suffix {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.input-group:focus-within .battletag-suffix {
    border-color: #ff4a11;
}

.input-group .form-control.is-invalid + .battletag-suffix {
    border-color: #dc3545;
}

/* Success container styling */
.success-container {
    padding: 2rem 0;
}

.success-container .text-success {
    color: #28a745 !important;
}

.success-battletag {
    font-size: 1.2rem;
}

.success-battletag .text-primary {
    color: #ff4a11 !important;
    font-family: 'Courier New', monospace;
}

/* ============================================================================
   HOME PAGE STYLES
   ============================================================================ */

.download-section {
    background-color: #f8f9fa;
    border: 2px solid #ff4a11;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.download-title {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #343a40;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-version {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.btn-download {
    background-color: #ff4a11;
    border-color: #ff4a11;
    color: #eaeaea;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-download:hover {
    background-color: #ff6a39;
    border-color: #ff6a39;
    color: #eaeaea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 74, 17, 0.4);
}

.btn-download svg {
    width: 24px;
    height: 24px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-action {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register {
    background-color: #343a40;
    border: 2px solid #343a40;
    color: #eaeaea;
}

.btn-register:hover {
    background-color: #495057;
    border-color: #495057;
    color: #eaeaea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.4);
}

.btn-beta {
    background-color: #ffffff;
    border: 2px solid #ff4a11;
    color: #ff4a11;
}

.btn-beta:hover {
    background-color: #ff4a11;
    color: #eaeaea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 74, 17, 0.4);
}

.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.section-divider span {
    padding: 0 1rem;
}

.info-text {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1.5rem;
}

.info-text a {
    color: #ff4a11;
    text-decoration: none;
    font-weight: 600;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Wide button variant for single action */
.btn-action.btn-wide {
    width: 100%;
    justify-content: center;
}

/* =========================================================================
   LOGIN PAGE - Notice Box
   ========================================================================= */

.notice-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notice-icon {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
}

.notice-text-en,
.notice-text-fr {
    margin: 0;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}

.notice-text-en strong,
.notice-text-fr strong {
    color: #ffffff;
    font-weight: 600;
}

.notice-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 16px 0;
}

.notice-text-fr {
    color: #94a3b8;
    font-style: italic;
}

/* Login Actions */
.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.login-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .notice-box {
        flex-direction: column;
        padding: 20px;
    }
    
    .notice-icon {
        align-self: center;
        margin-bottom: 8px;
    }
    
    .notice-content {
        text-align: center;
    }
}



/* ============================================================================
   DESKTOP STYLES (768px and wider)
   ============================================================================ */

@media (min-width: 768px) {
    body {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .registration-container {
        max-width: 450px;
        min-height: auto;
        padding: 2.5rem 2.5rem 2.5rem;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
        margin: 2rem 0;
    }

    .home-container {
        max-width: 500px;
        min-height: auto;
        padding: 2.5rem 2.5rem 2.5rem;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
        margin: 2rem 0;
    }

    .action-buttons {
        flex-direction: row;
    }

    .btn-action {
        flex: 1;
    }
}
