/* ==========================================
   Base theme styles
   ========================================== */

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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

/* ==========================================
   Fonts
   ========================================== */

@font-face {
    font-family: 'BebasNeue';
    src: url('../themes/t6hdigital/assets/fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Candal';
    src: url('../themes/t6hdigital/assets/fonts/Candal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   Default layout header
   ========================================== */

.site-header {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img {
    max-height: 60px;
}

.site-header .top-menu a {
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
}

/* ==========================================
   Auth layout (login, register, forgot-password)
   ========================================== */

.auth-wrapper {
    min-height: 100vh;
    background: url('../themes/t6hdigital/assets/images/login/background.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px 15px 0;
    position: relative;
    z-index: 2;
}

.auth-logo {
    display: block;
    width: 280px;
    transition: transform 0.2s ease;
}

.auth-logo:hover {
    transform: scale(1.02);
}

.auth-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.auth-terms-btn {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #004b8d;
    border-radius: 50px;
    padding: 14px 50px;
    margin-top: 35px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.auth-terms-btn img {
    display: block;
    width: 260px;
    height: auto;
}

.auth-terms-btn:hover {
    transform: scale(1.02);
}

.auth-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.auth-right .user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Candal', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin-top: 10px;
}

.auth-right .user-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-right .user-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px 40px;
}

/* ==========================================
   Login page
   ========================================== */

.login-page {
    width: 100%;
    max-width: 1100px;
}

.login-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.login-promo {
    flex: 1;
    max-width: 480px;
}

.login-promo img {
    width: 100%;
    height: auto;
    display: block;
}

.login-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px 45px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    font-family: 'BebasNeue', sans-serif;
    color: #004b8d;
    font-size: 36px;
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: normal;
    letter-spacing: 1px;
}

.login-box h3 {
    font-family: 'BebasNeue', sans-serif;
    color: #004b8d;
    font-size: 24px;
    text-align: center;
    margin: 0 0 25px 0;
    font-weight: normal;
    letter-spacing: 1px;
}

.login-box .points-total {
    font-family: 'BebasNeue', sans-serif;
    color: #e30613;
    font-size: 28px;
    text-align: center;
    margin: -5px 0 20px 0;
    font-weight: normal;
    letter-spacing: 1px;
}

.login-form .form-group {
    margin-bottom: 10px;
}

.login-form .form-control {
    width: 100%;
    border: 2px solid #004b8d;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'BebasNeue', sans-serif;
    font-size: 16px;
    color: #004b8d;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-control::placeholder {
    color: #004b8d;
    opacity: 0.8;
}

.login-form .form-control:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.1);
}

.login-form .file-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: 2px solid #004b8d;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'BebasNeue', sans-serif;
    font-size: 16px;
    color: #004b8d;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.login-form .file-label:hover {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.1);
}

.login-form .file-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-form .file-label.has-file {
    border-color: #27ae60;
    color: #27ae60;
}

.login-form .file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.login-form .btn-primary {
    width: 100%;
    background: #004b8d;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-family: 'BebasNeue', sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: center;
}

.login-form .btn-primary:hover {
    background: #003366;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: #004b8d;
    text-decoration: none;
    font-size: 11px;
    font-family: 'Candal', sans-serif;
    transition: opacity 0.2s;
}

.login-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.login-note {
    text-align: center;
    font-size: 9px;
    color: #888888;
    margin-top: 15px;
    margin-bottom: 0;
    font-family: 'Candal', sans-serif;
    line-height: 1.4;
}

.login-form .terms-group {
    margin-bottom: 18px;
}

.login-form .terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'BebasNeue', sans-serif;
    font-size: 14px;
    color: #004b8d;
    cursor: pointer;
}

.login-form .terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #004b8d;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================
   Thank you page
   ========================================== */

.thank-you-page {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

.thank-you-title {
    max-width: 1100px;
    width: 100%;
    height: auto;
    display: block;
}

.thank-you-message {
    font-family: 'BebasNeue', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thank-you-note {
    font-family: 'Candal', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    margin-top: 15px;
    opacity: 0.9;
}

/* ==========================================
   Register page
   ========================================== */

.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.register-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.register-box {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.register-form .form-group {
    margin-bottom: 1rem;
}

.register-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.register-form button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* ==========================================
   Reset password page
   ========================================== */

.reset-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reset-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.reset-box {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.reset-form .form-group {
    margin-bottom: 1rem;
}

.reset-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.reset-form button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

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

.form-errors {
    color: #c0392b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

.error-message {
    display: block;
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.error-message:empty {
    display: none;
}

input.is-invalid {
    border-color: #c0392b !important;
}

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

@media (max-width: 1024px) {
    .auth-header {
        padding: 0 30px 15px 0;
    }

    .auth-logo {
        width: 120px;
    }

    .auth-terms-btn {
        margin-top: 25px;
        padding: 3px 8px;
    }

    .auth-terms-btn img {
        width: 220px;
    }

    .login-content {
        gap: 40px;
    }

    .login-promo {
        max-width: 380px;
    }

    .login-box {
        padding: 35px;
        max-width: 360px;
    }

    .login-box h2 {
        font-size: 32px;
    }

    .login-box h3 {
        font-size: 22px;
    }

}

@media (max-width: 768px) {
    .auth-wrapper {
        background-position: top center;
    }

    .auth-main {
        padding: 10px 20px 30px;
    }

    .auth-header {
        padding: 0 15px 12px 0;
    }

    .auth-logo {
        width: 110px;
    }

    .auth-terms-btn {
        margin-top: 20px;
        padding: 3px 8px;
    }

    .auth-terms-btn img {
        width: 190px;
    }

    .login-content {
        flex-direction: column;
        gap: 25px;
    }

    .login-promo {
        max-width: 260px;
    }

    .login-box {
        max-width: 100%;
        padding: 30px 25px;
        border-radius: 25px;
    }

    .login-box h2 {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .login-box h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .site-header {
        padding: 1rem;
    }

}

@media (max-width: 480px) {
    .auth-logo {
        width: 110px;
    }

    .auth-terms-btn {
        margin-top: 15px;
        padding: 3px 8px;
    }

    .auth-terms-btn img {
        width: 160px;
    }

    .login-promo {
        max-width: 180px;
    }

    .login-box {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .login-box h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .login-box h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .login-form .form-control {
        padding: 10px 16px;
        font-size: 14px;
    }

    .login-form .btn-primary {
        padding: 12px;
        font-size: 16px;
    }

    .login-links {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .login-links a {
        font-size: 10px;
    }

    .login-note {
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .login-promo {
        max-width: 160px;
    }

    .login-box {
        padding: 20px 15px;
    }

    .auth-header {
        padding: 0 10px 10px 0;
    }
}
