/*
    Kartela e kyqjes/regjistrimit ne mes te faqes.

    login.css e ndan faqen ne dy kolona: paneli me info majtas dhe paneli i bardhe 480px i
    shtrire nga maja ne fund ne te djathte. Ketu ai layout kthehet ne nje kolone te vetme te
    centruar mbi video: titulli, kartela pluskuese me formen, dhe akordioni me info nen te.

    Rregullat e ketij skedari kane te njejtin specifikitet si te login.css, prandaj skedari
    DUHET te lidhet PAS login.css - fiton ai qe vjen i fundit. Per te njejten arsye kufiri
    768px i login.css duhet perseritur ne fund te ketij skedari: media query nuk shton
    specifikitet, keshtu qe pa te fshehja e info-panelit ne telefon do te anulohej.

    Vlen per Views/Account/Login.cshtml dhe Views/Regjistrimi/Index.cshtml.
*/

.login {
    /* Rreshti behet kolone: titulli, kartela me formen, info-paneli. */
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
}

/*
    Info-paneli ne dokument vjen para formes, kurse ne ekran duhet te dale nen kartele. Renditja
    behet me "order" e jo duke levizur bllokun e madh te akordionit ne HTML.
*/
.login .login-titulli {
    order: 1;
}

.login .form {
    order: 2;
}

.login .image-placeholder {
    order: 3;
}

/*
    Info-paneli dhe kartela mbajne te njejten gjeresi, qe skajet e tyre te bien ne nje vije.
    Ne login.css kartela eshte 480px; ketu shtrihet, sepse ne mes te faqes kolona e ngushte
    dukej e shtypur.
*/
.login .image-placeholder,
.login .form {
    width: 680px;
    max-width: 100%;
}

/*
    Centrimi vertikal behet me margina automatike e jo me justify-content:center - kur permbajtja
    e kalon lartesine e ekranit (fusha me gabime validimi, forma e regjistrimit, ekrane te vegjel),
    justify-content e pret pjesen e siperme dhe titulli nuk arrihet me me shkarrim. Margina auto
    e absorbon hapesiren vetem kur ka te tepert; kur nuk ka, permbajtja rrjedh normalisht.
    Elementi i pare merr margin-top:auto, i fundit margin-bottom:auto.
*/
.login .login-titulli {
    /* Pa gjeresi fikse: teksti mbeshtillet vetvetiu dhe titulli ngushtohet sa i duhet. */
    max-width: 760px;
    margin: auto 0 18px;
    text-align: center;
    font-size: 27px;
    line-height: 1.35;
    /* Titulli qendron drejt mbi video, prandaj hija e mban te lexueshem edhe ne kuadrat e ndritshme. */
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}

.login .form {
    /* Kartela merr vetem lartesine e permbajtjes; pa kete flex-i e shtrin ne lartesi te plote. */
    flex: 0 0 auto;
    padding: 20px 40px 15px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

/* Zvogëlimi i lartësisë së kontrolleve dhe hapësirave që të mos ketë scroll */
.login .form .form-group {
    margin-bottom: 8px;
}

.login .form .form-group label {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
}

.login .form .form-control {
    height: 36px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
}

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

.login .form p {
    margin-bottom: 0px;
    font-size: 12px;
}

.login .form h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.login .form .divImageParent {
    text-align: center;
    margin-bottom: 4px;
}

.login .form .divImageChild {
    max-height: 50px;
    width: auto;
}

/* 1. Toggle Button për Udhëzuesin */
.udhezuesi-toggle-wrapper {
    margin-top: 10px;
}

.udhezuesi-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    background-color: rgba(57, 139, 247, 0.08);
    color: #398bf7;
    border: 1px solid rgba(57, 139, 247, 0.3);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: left;
    outline: none !important;
}

.udhezuesi-toggle-btn:hover, .udhezuesi-toggle-btn:focus {
    background-color: #398bf7;
    color: #ffffff;
    border-color: #398bf7;
    box-shadow: 0 4px 10px rgba(57, 139, 247, 0.25);
    text-decoration: none;
}

.udhezuesi-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.udhezuesi-toggle-btn:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

/* 2. Dizajni i ri për linkat e rikthimit */
.fog-pwd-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.fog-pwd-link {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.fog-pwd-link:hover {
    background-color: #f1f5f9;
    border-color: #398bf7;
    color: #398bf7;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(57, 139, 247, 0.12);
}

.fog-pwd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: rgba(57, 139, 247, 0.1);
    color: #398bf7;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fog-pwd-link:hover .fog-pwd-icon {
    background-color: #398bf7;
    color: #ffffff;
}

.fog-pwd-text {
    flex: 1;
}

/*
    Blloku me info: nga kolone e majte behet panel nen kartele. Mbulesa e erret e login.css
    (.image-placeholder:before) e mbushte gjithe kolonen me pozicion absolut - ne kete layout
    do te mbulonte vetem vete panelin, prandaj hiqet dhe sfondi vendoset drejt nen tekst.
*/
.login .image-placeholder {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    margin: 18px 0 auto;
    background: none;
}

    .login .image-placeholder:before {
        display: none;
    }

/*
    Videoja udhezuese: ne HTML i mbeten atributet width/height, sepse shfletuesi prej tyre e nxjerr
    aspect-ratio-n dhe e rezervon hapesiren para se te ngarkohet - pa te faqja kercen. Permasat
    reale i vendos CSS-i: gjeresia sa korniza, lartesia proporcionale.
*/
.login .form .callout-video {
    /* .callout ka padding 15px 30px 15px 15px - e barazojme, se perndryshe videoja del jashte aksit. */
    padding: 15px;
    margin-top: 8px;
    margin-bottom: 0;
}

.login .form video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.login .childDiv {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 14px;
    padding: 14px 22px 4px;
}

/*
    Telefon: login.css e fsheh info-panelin dhe e ben formen sa gjeresia e ekranit. Kjo duhet
    perseritur ketu (shih shenimin ne fillim), dhe me info-panelin te fshehur kartela mbetet
    elementi i fundit - prandaj margin-bottom:auto kalon te ajo.
*/
@media only screen and (max-width: 768px) {
    .login {
        padding: 20px 12px;
    }

    .login .image-placeholder {
        display: none;
    }

    .login .form {
        width: 100%;
        margin-bottom: auto;
        padding: 20px 15px 15px;
        border-radius: 12px;
    }

    .login .login-titulli {
        font-size: 21px;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Dizajni Modern dhe Hijëzimet për Pop-up (Modals)
   ========================================================================== */

/* Prapavija e mjegullt (Backdrop blur) */
.modal-backdrop.show {
    opacity: 0.65;
    background-color: #0f172a;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Korniza dhe Hijëzimet e Dritares Pop-up */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.42), 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Kokë e dritares (Modal Header) me accent bar dhe dizajn të pastër */
.modal-header {
    padding: 18px 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: 4px solid #398bf7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Butoni i Mbylljes (Close button) */
.modal-header .close {
    margin: 0 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.modal-header .close:hover,
.modal-header .close:focus {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Trupi i Pop-up (Modal Body) */
.modal-body {
    padding: 22px 26px !important;
    background-color: #ffffff;
}

.modal-body label {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    margin-bottom: 5px;
}

.modal-body .form-control {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    height: 40px !important;
    font-size: 13px !important;
    transition: all 0.2s ease-in-out !important;
}

.modal-body .form-control:focus {
    border-color: #398bf7 !important;
    box-shadow: 0 0 0 3px rgba(57, 139, 247, 0.18) !important;
    outline: none !important;
}

/* Fundi i Dritares (Modal Footer) */
.modal-footer {
    padding: 14px 24px !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

.modal-footer .btn-primary,
.modal-footer input[type="submit"].btn-primary {
    background: linear-gradient(135deg, #398bf7 0%, #0069d9 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(57, 139, 247, 0.3) !important;
    transition: all 0.2s ease-in-out !important;
}

.modal-footer .btn-primary:hover,
.modal-footer input[type="submit"].btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(57, 139, 247, 0.42) !important;
}

.modal-footer .btn-secondary {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out !important;
}

.modal-footer .btn-secondary:hover {
    background: #cbd5e1 !important;
    color: #1e293b !important;
}

/* Njoftimet brenda modaleve (Alerts) */
.modal-body .alert {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
}


