﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
}


/* =========================
   PAGE
   ========================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
}


/* =========================
   LEFT BRAND PANEL
   ========================= */

.brand-panel {
    flex: 0 0 46%;
    min-width: 380px;
    min-height: 100vh;
    position: relative;
    background-color: #16244d;
    background-image: url('login-background.webp');
    background-position: center 42%;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(11, 20, 48, 0.55) 0%, rgba(11, 20, 48, 0.15) 32%, rgba(11, 20, 48, 0.25) 62%, rgba(8, 15, 38, 0.94) 100% );
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logos {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.smartface-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.fortuna-logo {
    width: 144px;
    height: 71px;
    object-fit: contain;
}


/* =========================
   RIGHT PANEL
   ========================= */

.login-panel {
    flex: 1;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
}

.login-container {
    width: 100%;
    max-width: 380px;
    margin: auto;
}


/* =========================
   HEADER
   ========================= */

.login-header {
    margin-bottom: 8px;
}

    .login-header h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        color: #131920;
    }

    .login-header p {
        margin: 4px 0 0;
        font-size: 14px;
        color: #666f7a;
    }


/* =========================
   FORM
   ========================= */

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.form-group {
    width: 100%;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #131920;
    }

.login-input, .capchacontainer input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d5d9df;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .login-input:focus {
        border-color: #2b3b6f;
        box-shadow: 0 0 0 3px rgba(43, 59, 111, 0.12);
    }
.capchacontainer input {
    color: black;
}
#CaptchaImage {
    width: 300px;
    height: 60px;
}
    /* =========================
   PASSWORD
   ========================= */

    .password-wrapper {
    position: relative;
}

    .password-wrapper .login-input {
        padding-right: 45px;
    }

.password-toggle {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
}


/* =========================
   CAPTCHA
   ========================= */

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-box {
    flex: 1;
    height: 44px;
    border: 1px solid #d5d9df;
    border-radius: 8px;
    background: repeating-linear-gradient( 45deg, #ffffff 0 6px, #eef0f5 6px 12px );
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    overflow: hidden;
}

    .captcha-box span {
        font-size: 20px;
        font-weight: 600;
        font-style: italic;
        color: #2b3b6f;
        letter-spacing: 2px;
    }

.captcha-refresh {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    color: #555f6d;
}

    .captcha-refresh:hover {
        background: #f0f1f5;
    }
a[href="#CaptchaImage"]
{
    padding:15px;
}
a[href="#CaptchaImage"]::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f2f1" !important;
}
/* =========================
   LOGIN BUTTON
   ========================= */

.login-button {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: #2b3b6f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .login-button:hover {
        background: #22305c;
    }


/* =========================
   RESET PASSWORD
   ========================= */

.reset-password {
    text-align: center;
    margin-top: 4px;
    font-size: 13px;
    color: #666f7a;
}

    .reset-password a {
        color: #2b3b6f;
        text-decoration: none;
        font-weight: 500;
    }

        .reset-password a:hover {
            text-decoration: underline;
        }


/* =========================
   ERRORS
   ========================= */

.login-error {
    display: flex;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f0b7b7;
    background: #fff1f1;
    color: #a4262c;
    font-size: 13px;
    line-height: 1.4;
}

.field-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .login-page {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 32px 20px;
    }

    .login-container {
        max-width: 420px;
    }
}
.capchacontainer {
    color: white;
}


