﻿/* =========================================================
   AUTH PAGE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body,
form {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: #14213d;
    background: #f3f6fb;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.auth-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   LEFT / BRAND SECTION
   ========================================================= */

.auth-brand {
    position: relative;
    width: 52%;
    min-height: 100vh;
    background: linear-gradient( 135deg, rgba(4, 64, 119, 0.96) 0%, rgba(8, 69, 126, 0.90) 45%, rgba(12, 42, 78, 0.82) 100% ), url("https://sofira.eu/repository/2.0/sofira_background.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 65% 25%, rgba(255, 255, 255, 0.12), transparent 35% );
}

.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    padding: 70px 8% 60px 11%;
    color: #ffffff;
}

/* =========================================================
   FEATURE BUTTONS
   ========================================================= */

.feature-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.feature-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}


    .feature-button:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.32);
        transform: translateX(4px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
        color: inherit;
        text-decoration: none;
    }


    .feature-button .feature-icon {
        flex: 0 0 auto;
    }


.feature-text {
    flex: 1;
    min-width: 0;
}


    .feature-text strong {
        display: block;
    }


    .feature-text span {
        display: block;
    }


.feature-arrow {
    flex: 0 0 auto;
    margin-left: 14px;
    font-size: 13px;
    opacity: .55;
    transition: transform .18s ease, opacity .18s ease;
}


.feature-button:hover .feature-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* =========================================================
   LOGO
   ========================================================= */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .brand-logo img {
        width: 82px;
        height: 82px;
        object-fit: contain;
    }

.brand-name {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.68);
}
/* =========================================================
   VIDEO POPUP
   ========================================================= */

.video-popup {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(5, 20, 42, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


    .video-popup.open {
        display: flex;
    }


.video-popup-window {
    width: min(1000px, 92vw);
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    animation: videoPopupOpen .22s ease-out;
}


/* HEADER */

.video-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 18px 0 22px;
    background: #ffffff;
    border-bottom: 1px solid #e4eaf1;
}


.video-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #17375f;
    font-size: 16px;
    font-weight: 700;
}


    .video-popup-title wa-icon {
        color: #ff0000;
        font-size: 23px;
    }


/* CLOSE */

.video-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #60728a;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 18px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}


    .video-popup-close:hover {
        color: #d83c3c;
        background: #ffecec;
        transform: rotate(90deg);
    }


/* VIDEO */

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}


    .video-container iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }


/* ANIMATION */

@keyframes videoPopupOpen {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .video-popup {
        padding: 12px;
    }


    .video-popup-window {
        width: 100%;
        border-radius: 14px;
    }


    .video-popup-header {
        min-height: 52px;
        padding: 0 12px 0 16px;
    }


    .video-popup-title {
        font-size: 14px;
    }
}

/* =========================================================
   BRAND MAIN CONTENT
   ========================================================= */

.brand-main {
    margin-top: clamp(80px, 11vh, 150px);
}

    .brand-main h1 {
        margin: 0;
        font-size: clamp(46px, 4.2vw, 70px);
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: -2px;
    }

.brand-description {
    margin: 30px 0 50px;
    font-size: 21px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   FEATURES
   ========================================================= */

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.feature strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

.feature span {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.auth-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
    min-height: 100vh;
    padding: 45px;
    background: radial-gradient( circle at top right, #ffffff 0, #f7f9fc 45%, #eef3f9 100% );
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 590px;
    padding: 55px 55px 45px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(211, 220, 232, 0.75);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(26, 53, 87, 0.08), 0 5px 20px rgba(26, 53, 87, 0.04);
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {
    margin-bottom: 34px;
}

    .login-header h2 {
        margin: 0 0 8px;
        font-size: 38px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: -1px;
        color: #0d1b36;
    }

    .login-header p {
        margin: 0;
        font-size: 17px;
        line-height: 1.5;
        color: #71809b;
    }


/* =========================================================
   MICROSOFT BUTTON
   ========================================================= */

.microsoft-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 66px;
    padding: 0 22px;
    text-decoration: none;
    color: #15213b;
    background: #ffffff;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(33, 54, 87, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

    .microsoft-button:hover {
        color: #15213b;
        background: #fafcff;
        border-color: #b9c8dc;
        box-shadow: 0 8px 24px rgba(30, 65, 110, 0.10);
        transform: translateY(-1px);
    }

    .microsoft-button:active {
        transform: translateY(0);
    }

    .microsoft-button img {
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
    }

    .microsoft-button > span:nth-of-type(1) {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
    }

.button-arrow {
    font-size: 34px;
    line-height: 1;
    color: #7c899f;
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.separator {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 30px 0;
    color: #8491a6;
}

    .separator span {
        height: 1px;
        flex: 1;
        background: #dce3ec;
    }

    .separator div {
        font-size: 14px;
        font-weight: 500;
    }


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

    .form-group > label {
        display: block;
        margin-bottom: 8px;
        font-size: 15px;
        font-weight: 500;
        color: #35445f;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 58px;
    padding: 0 50px 0 50px;
    font-size: 16px;
    color: #182641;
    background: #ffffff;
    border: 1px solid #d7dfeb;
    border-radius: 11px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .auth-input::placeholder {
        color: #9aa6ba;
    }

    .auth-input:hover {
        border-color: #bcc9da;
    }

    .auth-input:focus {
        border-color: #1874dc;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(24, 116, 220, 0.10);
    }

.input-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    width: 22px;
    text-align: center;
    font-size: 21px;
    color: #7f8da6;
    pointer-events: none;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    color: #77859c;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .password-toggle:hover {
        color: #176bd0;
        background: #f0f5fc;
    }


/* =========================================================
   OPTIONS
   ========================================================= */
.login-options2 {
    //display: flex;
    text-decoration: none;
    color: #0d68db;
}
.login-options2:hover {
    //display: flex;
    text-decoration: underline;
}


.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 3px 0 26px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #43516b;
}

    .remember input {
        width: 17px;
        height: 17px;
        accent-color: #0969da;
    }

.login-options > a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #0969da;
}

    .login-options > a:hover {
        text-decoration: underline;
    }


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.login-error {
    position: relative;
    margin-bottom: 20px;
    padding: 13px 16px 13px 42px;
    font-size: 14px;
    line-height: 1.45;
    color: #a52727;
    background: #fff5f5;
    border: 1px solid #f3cccc;
    border-radius: 10px;
}

    .login-error::before {
        position: absolute;
        left: 16px;
        top: 12px;
        content: "!";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
        background: #d84b4b;
        border-radius: 50%;
    }


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    width: 100%;
    height: 60px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient( 90deg, #1677e8 0%, #0861d5 100% );
    border: 0;
    border-radius: 10px;
    box-shadow: 0 9px 20px rgba(9, 105, 218, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .login-button:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(9, 105, 218, 0.26);
    }

    .login-button:active {
        transform: translateY(0);
        box-shadow: 0 5px 14px rgba(9, 105, 218, 0.20);
    }


/* =========================================================
   FOOTER / SUPPORT
   ========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid #e1e7ef;
    color: #748199;
}

.support-icon {
    font-size: 30px;
    color: #74849f;
}

.login-footer span,
.login-footer strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

.login-footer strong {
    font-weight: 500;
    color: #53627b;
}


/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1600px) {

    .auth-brand {
        width: 54%;
    }

    .auth-login {
        width: 46%;
    }

    .login-card {
        max-width: 620px;
    }
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .auth-brand {
        width: 47%;
    }

    .auth-login {
        width: 53%;
        padding: 30px;
    }

    .brand-content {
        padding-left: 9%;
        padding-right: 7%;
    }

    .brand-main h1 {
        font-size: 48px;
    }

    .brand-description {
        font-size: 18px;
    }

    .login-card {
        padding: 45px;
    }
}


/* =========================================================
   TABLET + MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .auth-page {
        display: block;
    }

    .auth-brand {
        display: none;
    }

    .auth-login {
        width: 100%;
        min-height: 100vh;
        padding: 35px 20px;
    }

    .login-card {
        max-width: 560px;
        padding: 45px;
        border-radius: 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .auth-login {
        align-items: flex-start;
        padding: 0;
        background: #ffffff;
    }

    .login-card {
        max-width: none;
        min-height: 100vh;
        padding: 45px 25px 30px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-header h2 {
        font-size: 32px;
    }

    .login-header p {
        font-size: 15px;
    }

    .microsoft-button {
        height: 60px;
    }

        .microsoft-button > span:nth-of-type(1) {
            font-size: 16px;
        }

    .auth-input {
        height: 56px;
        font-size: 15px;
    }

    .login-options {
        align-items: flex-start;
        gap: 12px;
    }

    .login-button {
        height: 58px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-options {
        flex-direction: column;
    }
}

/* =========================================================
   FIX VERTICAL SCROLL
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}