/* ============================================================
   Login Page Styles — maeum
   ============================================================ */

/* ---------- Utility ---------- */
.d-none { display: none !important; }

/* ---------- Base ---------- */
body.login-page {
    font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ---------- Split Layout ---------- */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left: Visual Panel */
.login-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Admin theme */
.login-visual.theme-admin {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 40%, #3b7ddd 100%);
}
.login-visual.theme-admin::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Office theme — 인디고 톤 */
.login-visual.theme-office {
    background: linear-gradient(135deg, #1a2a5f 0%, #3450a1 40%, #5b7fd6 100%);
}
.login-visual.theme-office::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='60' cy='0' r='4'/%3E%3Ccircle cx='0' cy='60' r='4'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Direct theme — 연한 회색 톤 */
.login-visual.theme-direct {
    background: linear-gradient(135deg, #7a8a9a 0%, #95a5b5 40%, #b3c2d0 100%);
}
.login-visual.theme-direct::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15M30 30L15 45M30 30l15 15M30 30L15 15' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3Crect x='25' y='25' width='10' height='10' rx='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.login-visual-logo {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.login-visual-logo .logo-accent {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 2px 12px;
    margin-left: 8px;
    font-size: 20px;
    font-weight: 600;
    vertical-align: middle;
    letter-spacing: 1px;
}

.login-visual-sub {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 400;
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}

.login-visual-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.login-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.login-feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
}

.login-feature-text p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
    line-height: 1.4;
}

/* Floating decoration shapes */
.login-visual .deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 0;
}
.login-visual .deco-circle.c1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.login-visual .deco-circle.c2 { width: 200px; height: 200px; bottom: -40px; left: -40px; }
.login-visual .deco-circle.c3 { width: 120px; height: 120px; bottom: 30%; right: 10%; border-color: rgba(255,255,255,0.06); }

/* Right: Form Panel */
.login-form-panel {
    width: 480px;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: #fff;
    position: relative;
}

.login-form-inner {
    width: 100%;
    max-width: 360px;
}

/* Mobile logo (hidden on desktop) */
.login-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.login-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.login-form-desc {
    font-size: 14px;
    color: #8c8c9a;
    margin-bottom: 36px;
}

/* ---------- Form Elements ---------- */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a5a;
    margin-bottom: 6px;
}

.login-form .form-control {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    border: 1.5px solid #e2e5ea;
    border-radius: 10px;
    font-size: 14px;
    padding: 0 16px;
    transition: all 0.2s ease;
    background: #f8f9fb;
}

.login-form .form-control:focus {
    border-color: #3b7ddd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,125,221,0.1);
}

.theme-office-form .form-control:focus {
    border-color: #5b7fd6;
    box-shadow: 0 0 0 3px rgba(91,127,214,0.1);
}

.theme-direct-form .form-control:focus {
    border-color: #95a5b5;
    box-shadow: 0 0 0 3px rgba(149,165,181,0.15);
}

.login-form .form-control::placeholder {
    color: #b0b3ba;
}

/* Input icon wrapper */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-control {
    padding-left: 44px;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3ba;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-wrap .form-control:focus + .input-icon,
.input-icon-wrap .form-control:focus ~ .input-icon {
    color: #3b7ddd;
}

.theme-office-form .input-icon-wrap .form-control:focus + .input-icon,
.theme-office-form .input-icon-wrap .form-control:focus ~ .input-icon {
    color: #5b7fd6;
}

.theme-direct-form .input-icon-wrap .form-control:focus + .input-icon,
.theme-direct-form .input-icon-wrap .form-control:focus ~ .input-icon {
    color: #7a8a9a;
}

/* Error alert */
.login-error {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    border: none;
    background: #fff0f0;
    color: #d63031;
    margin-bottom: 20px;
}

/* Submit button */
.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.login-btn.btn-admin {
    background: linear-gradient(135deg, #2d5a8e, #3b7ddd);
}
.login-btn.btn-admin:hover {
    background: linear-gradient(135deg, #244b78, #3270cc);
    box-shadow: 0 4px 15px rgba(59,125,221,0.35);
    transform: translateY(-1px);
}

.login-btn.btn-office {
    background: linear-gradient(135deg, #3450a1, #5b7fd6);
}
.login-btn.btn-office:hover {
    background: linear-gradient(135deg, #2c4490, #4f71c8);
    box-shadow: 0 4px 15px rgba(91,127,214,0.35);
    transform: translateY(-1px);
}

.login-btn.btn-direct {
    background: linear-gradient(135deg, #7a8a9a, #95a5b5);
}
.login-btn.btn-direct:hover {
    background: linear-gradient(135deg, #6b7b8b, #889aab);
    box-shadow: 0 4px 15px rgba(122,138,154,0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Forgot password */
.login-forgot {
    text-align: center;
    margin-top: 20px;
}

.login-forgot a {
    font-size: 13px;
    color: #8c8c9a;
    text-decoration: none;
    transition: color 0.2s;
}
.login-forgot a:hover {
    color: #4a4a5a;
}

/* Footer / copyright */
.login-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #c0c0c8;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .login-visual {
        display: none;
    }
    .login-form-panel {
        width: 100%;
        min-width: unset;
    }
    .login-mobile-logo {
        display: block;
    }
}
