﻿
/* Karapardaz - Modern Customer Login */
* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: karasans, Tahoma, sans-serif;
    background: #f3f5f9;
    color: #263244;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
}

.login-layout {
    width: 100%;
    max-width: 1080px;
    min-height: 590px;
    display: flex;
    direction: rtl;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(25, 40, 65, .10);
}

/* Login panel */
.login-card {
    flex: 0 0 47%;
    padding: 55px 55px 35px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-heading {
    font-size: 27px;
    font-weight: bold;
    color: #263244;
    margin-bottom: 8px;
}

.login-description {
    color: #929baa;
    font-size: 13px;
    margin-bottom: 35px;
    line-height: 2;
}

.login-field {
    margin-bottom: 21px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 9px;
    color: #414d60;
}

.login-input-group {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    background: #fafbfd;
    transition: .2s;
    overflow: hidden;
}

.login-input-group:focus-within {
    border-color: #f58035;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 128, 53, .10);
}

.login-input-icon {
    width: 48px;
    text-align: center;
    color: #a4adba;
    font-size: 17px;
    flex-shrink: 0;
}

.login-input {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 14px;
    color: #263244;
    padding: 0 8px;
}

.login-input::placeholder {
    color: #aab2bf;
}

.login-captcha {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0 24px;
}

.login-captcha-image {
    min-width: 105px;
    max-width: 125px;
    height: 47px;
    object-fit: contain;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    background: #f8f9fb;
}

.login-captcha-input {
    min-width: 0;
    width: 100%;
    height: 47px;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
}

.login-captcha-input:focus {
    border-color: #f58035;
}

.login-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    color: #929baa;
    font-size: 18px;
    text-decoration: none;
}

.login-refresh:hover {
    color: #f58035;
}

.login-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #f58035;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

.login-button:hover {
    background: #e96e25;
    box-shadow: 0 8px 20px rgba(245, 128, 53, .25);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 12px;
}

.login-links a {
    color: #788497;
    text-decoration: none;
}

.login-links a:hover {
    color: #f58035;
}

.login-validator {
    display: block;
    color: #dc3545;
    font-size: 11px;
    margin-top: 5px;
}

/* Brand panel */
.brand-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #202b3d 0%, #303d52 100%);
    color: white;
    padding: 55px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-panel:before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    top: -160px;
    right: -130px;
}

.brand-panel:after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    bottom: -170px;
    left: -120px;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.brand-logo {
    width: 105px;
    height: auto;
    margin-bottom: 22px;
    background: white;
    padding: 9px;
    border-radius: 18px;
}

.brand-title {
    font-size: 27px;
    font-weight: bold;
    margin: 0 0 12px;
}

.brand-title span {
    color: #ff994f;
}

.brand-subtitle {
    font-size: 14px;
    line-height: 2.2;
    color: #c4ccd7;
}

.brand-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    margin: 38px 0;
}

.brand-icon-box {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #ff994f;
    font-size: 28px;
    transform: rotate(-5deg);
}

.brand-icon-box:nth-child(2) {
    transform: translateY(-16px);
    background: #f58035;
    color: white;
}

.brand-footer {
    margin-top: 30px;
    color: #aeb8c7;
    font-size: 11px;
}

.login-message {
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 2;
}

/* Responsive */
@media(max-width: 767px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-layout {
        flex-direction: column;
        border-radius: 15px;
    }

    .brand-panel {
        flex: auto;
        padding: 28px 20px;
        min-height: 215px;
    }

    .brand-logo {
        width: 65px;
        margin-bottom: 10px;
    }

    .brand-title {
        font-size: 21px;
    }

    .brand-subtitle {
        font-size: 12px;
        margin: 0;
    }

    .brand-illustration {
        display: none;
    }

    .brand-footer {
        display: none;
    }

    .login-card {
        flex: auto;
        padding: 32px 22px;
    }

    .login-heading {
        font-size: 23px;
    }
}

@media(max-width: 380px) {
    .login-card {
        padding: 25px 15px;
    }

    .login-captcha {
        gap: 5px;
    }

    .login-captcha-image {
        min-width: 85px;
        max-width: 95px;
    }

    .login-refresh {
        width: 28px;
    }


    
/* Recovery Page */

.login-submit-area {
    margin-top: 8px;
}

.login-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: 52px;
}

.login-link-button:hover {
    color: #fff !important;
}

.login-link-button i {
    margin-left: 9px;
}

.recovery-guide {
    width: 100%;
    margin-top: 28px;
    text-align: right;
}

.recovery-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #d0d6df;
    font-size: 12px;
    line-height: 2.2;
}

.recovery-guide-item:last-child {
    border-bottom: none;
}

.recovery-guide-item i {
    color: #ff994f;
    font-size: 17px;
    min-width: 20px;
    margin-top: 5px;
}

/* Success and Error Messages */

.login-message {
    padding: 13px 16px;
    border-radius: 10px;
}

.login-message h5 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 7px;
}

.login-message i {
    margin-left: 5px;
}

/* Loading Overlay */



.loading {
    width: 240px;
    padding: 25px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,.15);
}

.loading img {
    width: 48px;
}

.loading p {
    margin: 15px 0 0;
    color: #465368;
    font-size: 13px;
}

@media(max-width: 767px) {

    .recovery-guide {
        margin-top: 15px;
    }

    .recovery-guide-item {
        font-size: 11px;
        padding: 8px 0;
    }

}

}
