:root {
    --login-primary: #4e73df;
    --login-link: #4e73df;
    --login-surface: #ffffff;
    --login-shadow: rgba(15, 23, 42, 0.18);
    --login-text: #1e293b;
    --login-muted: #64748b;
}

body {
    background: #ffffff;
    font-family: 'Signika', sans-serif;
    line-height: 1.6;
    color: var(--login-text);
    margin: 0;
}

.login-body {
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

.login-card {
    background: var(--login-surface);
    border-radius: 32px;
    box-shadow: 0 20px 60px var(--login-shadow);
    width: 100%;
    max-width: 1180px;
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    gap: 32px;
}

.login-left,
.login-right {
    flex: 1 1 460px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.brand-logo img {
    height: 72px;
    width: auto;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    padding: 12px;
}

.brand-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--login-text);
}

.brand-text p {
    margin: 6px 0 0;
    color: var(--login-muted);
    font-size: 15px;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.control-label {
    font-weight: 600;
    color: var(--login-text);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--login-muted);
    font-size: 16px;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0 16px 0 44px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: var(--login-text);
}

.form-control:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.12);
    outline: none;
}

.form-group.has-error .form-control {
    border-color: #dc2626;
}

.form-group .error {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.login-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-replace {
    font-size: 14px;
    color: var(--login-muted);
}

.forgot-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--login-link);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

.btn-login {
    background: var(--login-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    height: 50px;
    border-radius: 14px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(78, 115, 223, 0.25);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.25);
}

.contact-block {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--login-muted);
    font-size: 14px;
}

.contact-item i {
    color: var(--login-primary);
    font-size: 18px;
    margin-top: 2px;
}

.contact-item small {
    display: block;
    color: var(--login-muted);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(78, 115, 223, 0.12);
    color: var(--login-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--login-primary);
    color: #fff;
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 36px;
    font-size: 13px;
    color: var(--login-muted);
    text-align: left;
}

.login-right {
    background: linear-gradient(140deg, #0f172a, #1d4ed8);
    position: relative;
    color: #fff;
    padding: 32px;
    border-radius: 24px;
}

.login-hero {
    position: relative;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 420px;
}

.login-hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.login-hero__image.is-visible {
    opacity: 1;
}

.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.login-hero__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    width: 100%;
}

.hero-brand h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.hero-brand p {
    margin: 10px 0 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
}

.login-testimonial {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.3);
    max-width: 420px;
    transition: opacity 0.3s ease;
}

.login-testimonial.is-changing {
    opacity: 0.55;
}

.login-testimonial__quote {
    position: relative;
    margin-bottom: 18px;
}

.quote-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.login-testimonial__quote p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.login-testimonial__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.login-testimonial__meta h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.login-testimonial__meta small {
    color: rgba(255, 255, 255, 0.75);
}

.login-testimonial__rating i {
    color: #fbbf24;
    margin-left: 2px;
}

.login-testimonial__rating i.far {
    color: rgba(248, 250, 252, 0.55);
}

@media (max-width: 1199px) {
    .login-card {
        max-width: 1000px;
    }
}

@media (max-width: 991px) {
    .login-card {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        padding: 36px 28px;
    }

    .login-right {
        border-radius: 0 0 28px 28px;
    }

    .login-hero {
        min-height: 320px;
    }
}

@media (max-width: 575px) {
    .login-wrapper {
        padding: 24px 16px;
    }

    .login-left,
    .login-right {
        padding: 28px 20px;
    }

    .brand-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-logo img {
        height: 64px;
    }

    .login-testimonial {
        max-width: 100%;
    }

    .login-form__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-hero {
        min-height: 260px;
    }
}
