﻿
html, body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #e9eef4;
    background-image: -webkit-linear-gradient(135deg, #0c3b63 0%, #203090 38%, #071c33 100%);
    background-image: linear-gradient(135deg, #0c3b63 0%, #203090 38%, #071c33 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Centering with old fallback */
.login-shell {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: table;
    padding: 24px 14px;
}

.login-shell-inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.login-card {
    width: 100%;
    max-width: 980px;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    -webkit-box-shadow: 0 22px 60px rgba(0,0,0,.22), 0 6px 16px rgba(0,0,0,.18);
    box-shadow: 0 22px 60px rgba(0,0,0,.22), 0 6px 16px rgba(0,0,0,.18);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    margin: 0 auto;
    text-align: left;
}

/* LEFT PANEL */
.left-panel {
    background-color: #f4f6fb; /* fallback */
    position: relative;
    overflow: hidden;
    background-image: -webkit-linear-gradient(135deg, #f4f6fb 0%, #f4f6fb 55%, #ffffff 100%);
    background-image: linear-gradient(135deg, #f4f6fb 0%, #f4f6fb 55%, #ffffff 100%);
}

    /* bottom-center pure-white spot */
    .left-panel:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        pointer-events: none;
        background: transparent;
        background-image: -webkit-radial-gradient(50% 100%, circle, #ffffff 0%, #ffffff 28%, rgba(255,255,255,0) 70%);
        background-image: radial-gradient(circle at 50% 100%, #ffffff 0%, #ffffff 28%, rgba(255,255,255,0) 70%);
    }

/* Reserve space so content never overlaps the sticky logo */
.left-content {
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

/* Sticky bottom-center logo (position it relative to LEFT PANEL) */
.left-logo-sticky {
    position: relative;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    text-align: center;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

    .left-logo-sticky a {
        display: inline-block;
    }

    /* Logo hover grow from center (slow) */
.left-logo-sticky img {
        display: block;
        width: 90px;
        max-width: 100%;
        height: auto;
        background: #ffffff;
        border-radius: 5064%;
        -webkit-box-shadow: 0 10px 24px rgba(0,0,0,.10);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
        -webkit-transform-origin: 50% 50%;
        -ms-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
        -webkit-transition: -webkit-transform 600ms ease;
        -moz-transition: -moz-transform 600ms ease;
        transition: transform 600ms ease;
        will-change: transform;
    }



        .left-logo-sticky img:hover {
            -webkit-transform: scale(1.2);
            -ms-transform: scale(1.2);
            transform: scale(1.2);
        }

.welcome-title {
    letter-spacing: .08em;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.05;
    color: #111;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 6px;
}

.welcome-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 12.5px;
    margin-bottom: 18px;
}

.form-label-soft {
    color: #2b5b93;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.input-group-text {
    background: #e9edf3;
    border-color: #d7dde7;
    color: #4b5563;
    width: 44px;
    text-align: center;
}

.form-control {
    border-color: #d7dde7;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

    .form-control:focus {
        border-color: rgba(30,123,214,.55);
        -webkit-box-shadow: 0 0 0 .2rem rgba(30,123,214,.15) !important;
        box-shadow: 0 0 0 .2rem rgba(30,123,214,.15) !important;
    }

.link-soft {
    color: #2c79c5;
    text-decoration: none;
}

    .link-soft:hover {
        text-decoration: underline;
    }

/* ===== RIGHT PANEL + CAROUSEL ===== */
.right-panel {
    background: #0a0b0e;
    color: #fff;
    position: relative;
    padding: 0;
    overflow: hidden; /* avoid seeing edges during slide */
}

/* fill height */
#loginRightCarousel,
#loginRightCarousel .carousel-inner {
    height: 100%;
}

    /* IMPORTANT: restore Bootstrap logic => only ONE slide visible */
    #loginRightCarousel .carousel-item {
        display: none;
        width: 100%;
        height: 100%;
    }

        /* Only active/transitioning items use flex layout */
        #loginRightCarousel .carousel-item.active,
        #loginRightCarousel .carousel-item-next,
        #loginRightCarousel .carousel-item-prev {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
        }

    #loginRightCarousel .carousel-body {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
    }

/* Header image block (inside each slide) */
.promo-img {
    height: 230px;
    position: relative;
    background-color: #111;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    .promo-img:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0,0,0,.35);
    }

.promo-img:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    /* Transparent until ~85%, then fade to black */
    background-image: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 85%, rgba(0,0,0,0.95) 100% );
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 85%, rgba(0,0,0,0.95) 100% );
}

/* Per-slide images (set your own files) */
.promo-img-1 {
    background-image: url("/images/login_header_1.png");
}

.promo-img-2 {
    background-image: url("/images/login_header_2.png");
}

.promo-img-3 {
    background-image: url("/images/login_header_3.png");
}

.promo-title {
    font-weight: 900;
    font-size: 18px;
    margin: 1px 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.promo-text {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(0,0,0,.92);
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
    margin-bottom: 12px;
}

.promo-steps {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

    .promo-steps .path {
        margin-top: 8px;
        font-weight: 800;
        color: #fff;
    }

/* indicators slightly smaller */
.carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.carousel-control-prev {
    width: 45px;
}
.carousel-control-prev:hover {
    background-color:rgba(255, 255, 255,0.15);
}
.carousel-control-next {
    width: 45px;
}
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255,0.15);
}

/* ===== ERAI-style buttons ===== */
.Btn {
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: #263996;
    border-top: 1px solid #263996;
    border-left: 1px solid #263996;
    border-right: 1px solid #263996;
    border-bottom: none;
    background-image: url("/images/_new/pattern_button_blue.png");
    -ms-background-repeat: repeat-x;
    background-repeat: repeat-x;
    -ms-background-position: bottom;
    background-position: bottom;
    -webkit-box-shadow: -3px 3px 0 0 rgba(90,90,90,0.2);
    -moz-box-shadow: -3px 3px 0 0 rgba(90,90,90,0.2);
    box-shadow: -3px 3px 0 0 rgba(90,90,90,0.2);
    line-height: 18pt;
    font-size: 13pt;
    padding: 8px 18px 5px 18px;
    -webkit-transition: background-color 0.5s ease;
    -moz-transition: background-color 0.5s ease;
    transition: background-color 0.5s ease;
}

    .Btn:hover,
    .Btn:active,
    .Btn:focus {
        color: #ffffff !important;
        background-color: #2e45b8;
        border-top: 1px solid #2e45b8;
        border-left: 1px solid #2e45b8;
        border-right: 1px solid #2e45b8;
        -webkit-box-shadow: -3px 3px 0 0 rgba(50,50,50,0.2);
        -moz-box-shadow: -3px 3px 0 0 rgba(50,50,50,0.2);
        box-shadow: -3px 3px 0 0 rgba(50,50,50,0.2);
        cursor: pointer;
        outline: none;
    }

/* ===== Validation styles ===== */
.validation {
}

    .validation.error {
        color: red;
    }

    .validation.success {
        color: green;
    }

.validationmain {
    padding: 5px;
    padding-left: 10px;
    margin-bottom: 10px;
    margin-top: 0px;
    border-radius: 4px;
}

    .validationmain.error {
        border: 1px solid #660000;
        color: white;
        background-color: #dd6666;
    }

    .validationmain.success {
        border: 1px solid #006600;
        color: white;
        background-color: #66dd66;
    }

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .promo-img {
        height: 200px;
    }

    .left-content {
        padding-bottom: 110px;
    }

    .left-logo-sticky img {
        width: 86px;
    }
}


.passkey-section {
    border-left: 4px solid #87CEEB; /* Небесносинята линия */
    background-color: #f0faff; /* Много бледа основа за контраст */
    padding: 10px 15px;
    border-radius: 4px; /* Заоблени десни ъгли */
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.passkey-section:hover {
    background-color: #e1f5fe; /* Свеж ефект при посочване */
    border-left-color: #00BFFF; /* По-наситено синьо при hover */
}


/**** DARK ALTERNATIVE (append at bottom) ****/
/*
@media (prefers-color-scheme: dark) {

    body {
        background-color: #0f141b;
        background-image: -webkit-linear-gradient(135deg,#081f35 0%, #1b2568 38%, #050f1b 100%);
        background-image: linear-gradient(135deg,#081f35 0%, #1b2568 38%, #050f1b 100%);
    }

    .login-card {
        background: #11151c;
        -webkit-box-shadow: 0 22px 60px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.35);
        box-shadow: 0 22px 60px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.35);
    }

    .left-panel {
        background-color: #141a22;
        background-image: -webkit-linear-gradient(135deg,#141a22 0%, #141a22 55%, #0f141b 100%);
        background-image: linear-gradient(135deg,#141a22 0%, #141a22 55%, #0f141b 100%);
    }

        .left-panel:before {
            background-image: -webkit-radial-gradient(50% 100%, circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,.10) 28%, rgba(255,255,255,0) 70%);
            background-image: radial-gradient(circle at 50% 100%, rgba(255,255,255,.12) 0%, rgba(255,255,255,.10) 28%, rgba(255,255,255,0) 70%);
        }

    .left-logo-sticky img {
        background: #121720;
        -webkit-box-shadow: 0 10px 24px rgba(0,0,0,.35);
        box-shadow: 0 10px 24px rgba(0,0,0,.35);
    }

    .welcome-title {
        color: #eef2f7;
    }

    .welcome-subtitle {
        color: #aeb7c3;
    }

    .form-label-soft {
        color: #8bb8ff;
    }

    .input-group-text {
        background: #1a2230;
        border-color: #2b3544;
        color: #b6c0cc;
    }

    .form-control {
        background: #0f141b;
        color: #e6ebf2;
        border-color: #2b3544;
    }

        .form-control::placeholder {
            color: #8f9bad;
        }

        .form-control:focus {
            border-color: rgba(139,184,255,.55);
            -webkit-box-shadow: 0 0 0 .2rem rgba(139,184,255,.18) !important;
            box-shadow: 0 0 0 .2rem rgba(139,184,255,.18) !important;
        }

    .link-soft {
        color: #8bb8ff;
    }

        .link-soft:hover {
            text-decoration: underline;
        }

    .right-panel {
        background: #0a0b0e;
    }

    .promo-text, .promo-steps {
        color: rgba(255,255,255,.86);
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: rgba(255,255,255,0.10);
    }

    .Btn {
        background-color: #223487;
        border-top: 1px solid #223487;
        border-left: 1px solid #223487;
        border-right: 1px solid #223487;
        -webkit-box-shadow: -3px 3px 0 0 rgba(0,0,0,0.25);
        -moz-box-shadow: -3px 3px 0 0 rgba(0,0,0,0.25);
        box-shadow: -3px 3px 0 0 rgba(0,0,0,0.25);
    }

        .Btn:hover,
        .Btn:active,
        .Btn:focus {
            background-color: #2b44b2;
            border-top: 1px solid #2b44b2;
            border-left: 1px solid #2b44b2;
            border-right: 1px solid #2b44b2;
            -webkit-box-shadow: -3px 3px 0 0 rgba(0,0,0,0.28);
            -moz-box-shadow: -3px 3px 0 0 rgba(0,0,0,0.28);
            box-shadow: -3px 3px 0 0 rgba(0,0,0,0.28);
        }

    .validation.error {
        color: #ff6b6b;
    }

    .validation.success {
        color: #5bd67a;
    }

    .validationmain.error {
        border: 1px solid #7a2a2a;
        color: #f7e9e9;
        background-color: #5a2b2b;
    }

    .validationmain.success {
        border: 1px solid #1f5b2c;
        color: #e9f7ee;
        background-color: #244a2f;
    }
}
    */
