:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --panel: #ffffff;
    --text: #202020;
    --text-soft: #626262;
    --border: #e5e7eb;
    --dark: #2d2d2d;
    --accent: #ef1b1b;
    --accent-dark: #d91515;
    --accent-soft: rgba(239, 27, 27, 0.08);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.login-wrapper {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.015), transparent 30%),
        linear-gradient(315deg, rgba(239, 27, 27, 0.03), transparent 35%),
        #ffffff;
}

.login-panel-left {
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-right: 1px solid var(--border);
}

.login-panel-left::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 48px;
    width: 82px;
    height: 4px;
    background: var(--accent);
    border-radius: 20px;
}

.left-content {
    max-width: 560px;
    width: 100%;
}

.brand-top {
    margin-bottom: 42px;
}

.brand-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

.overline {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--dark);
}

.brand-copy p {
    margin: 0;
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-soft);
    font-weight: 400;
}

.brand-points {
    display: grid;
    gap: 14px;
    margin-top: 38px;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.point-item i {
    font-size: 1.1rem;
    color: var(--accent);
}

.point-item span {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}

.login-panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
}

.login-box {
    width: 100%;
    max-width: 430px;
    padding: 40px 38px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.mobile-brand {
    margin-bottom: 28px;
    text-align: center;
}

.brand-logo-mobile {
    max-width: 210px;
    width: 100%;
    height: auto;
}

.login-header {
    margin-bottom: 28px;
}

.login-header h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--dark);
}

.login-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.7;
    font-weight: 400;
}

.form-label {
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark);
}

.field-group {
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: 0.2s ease;
}

.field-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-icon {
    width: 46px;
    text-align: center;
    color: #7a7a7a;
    font-size: 1rem;
}

.form-control-custom {
    flex: 1;
    min-height: 52px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    padding-right: 12px;
}

.form-control-custom::placeholder {
    color: #a0a0a0;
}

.toggle-password {
    width: 46px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #7a7a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: var(--accent);
}

.btn-login {
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: 0.2s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(239, 27, 27, 0.18);
}

.btn-login:disabled {
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .login-panel-right {
        min-height: 100vh;
        padding: 24px 16px;
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    }

    .login-box {
        max-width: 500px;
        padding: 34px 24px;
    }

    .login-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .login-box {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .login-header h2 {
        font-size: 1.9rem;
    }

    .brand-logo-mobile {
        max-width: 180px;
    }
}