* {
    box-sizing: border-box;
}

body {
    font-family: "Sarabun", Arial, sans-serif;
    margin: 0;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff7ec 0%, #f6f7fb 55%, #fff0f3 100%);
    overflow: hidden;
}

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

.login-panel {
    width: 100%;
    max-width: 1120px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 420px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(31,41,55,.18);
}

.login-left {
    padding: 42px 48px;
    background: linear-gradient(135deg, #ff9800 0%, #f36c21 48%, #e91b2d 100%);
    color: #ffffff;
    position: relative;
}

.login-left::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 330px;
    height: 330px;
    background: url("../img/logo.png") no-repeat center;
    background-size: contain;
    opacity: .12;
}

.login-left > * {
    position: relative;
    z-index: 1;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.brand-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.brand-box p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.9);
}

.headline {
    margin-top: 58px;
    max-width: 640px;
}

.headline h1 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
}

.headline p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,.92);
}

.feature-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 18px;
    padding: 16px;
    color: #ffffff;
}

.feature-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.feature-card b {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.feature-card span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.9);
    margin-top: 4px;
}

.login-footer-text {
    position: absolute;
    left: 48px;
    bottom: 26px;
    font-size: 13px;
    color: rgba(255,255,255,.82);
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: #ffffff;
}

.login-card-pro {
    width: 100%;
    max-width: 350px;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    width: 90px;
    margin-bottom: 16px;
}

.login-title {
    margin-bottom: 28px;
}

.login-title h3 {
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-title p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-box {
    height: 54px;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 15px;
    transition: .2s;
}

.input-box:focus-within {
    background: #ffffff;
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255,152,0,.14);
}

.input-box span {
    width: 26px;
    font-size: 17px;
}

.input-box .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    height: 52px;
    padding-left: 8px;
}

.btn-login-pro {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff9800, #e91b2d);
    box-shadow: 0 14px 28px rgba(233,27,45,.24);
    transition: .2s;
}

.btn-login-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(233,27,45,.30);
}

.help-text {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 13px;
}

.alert {
    border-radius: 14px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .login-page {
        overflow: auto;
    }

    .login-panel {
        grid-template-columns: 1fr;
        max-width: 460px;
        min-height: auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 34px 26px;
    }

    .mobile-logo {
        display: block;
    }

    .login-title {
        text-align: center;
    }

    .login-title h3 {
        font-size: 28px;
    }
}