:root {
    --primary: #682337;
    --primary-dark: #4f1929;
    --primary-soft: #f6e9ed;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text-dark);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(
            145deg,
            rgba(104, 35, 55, 0.98),
            rgba(61, 20, 33, 0.98)
        );
    color: #ffffff;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -100px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -120px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.brand-header,
.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 27px;
    font-weight: 800;
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
}

.brand-tagline {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.brand-content {
    max-width: 680px;
}

.brand-label {
    margin-bottom: 18px;
    color: #f4ccd8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-content h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.brand-content p {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.8;
}

.brand-footer {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: -25px;
}

.login-form-panel {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.login-form-wrapper {
    width: 100%;
    max-width: 430px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.login-heading {
    margin-bottom: 10px;
    font-size: 34px;
    letter-spacing: -1px;
}

.login-description {
    margin-bottom: 34px;
    color: var(--text-muted);
    line-height: 1.7;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 15px;
    transition: 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.form-options {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.forgot-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: 0.2s ease;
}

.login-button:hover {
    background: var(--primary-dark);
}

.login-note {
    margin-top: 24px;
    padding: 16px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 950px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 0px;
        padding: 40px;
    }

    .brand-footer {
        display: none;
    }

    .login-form-panel {
        padding: 50px 24px;
    }
}

@media (max-width: 560px) {
    .login-brand-panel {
        min-height: 270px;
        padding: 28px 22px;
    }

    .brand-content h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .brand-content p {
        font-size: 15px;
    }

    .login-form-panel {
        padding: 36px 20px;
    }

    .back-home {
        margin-bottom: 34px;
    }

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

.login-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.login-message.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.login-message.warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.login-message.success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.brand-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    display: block;
}