/* AhaMall Vendor Login Styles */
:root {
    --brand: #DCA54A;
    --brand-alt: #D98C10;
    --heading: #0F172A;
    --text: #4A4A4A;
    --bg-sub: #FAF5E5;
    --bg-base: #FFFFFF;
    --red: #E53935;
}

/* Astra 오버라이드 */
body.page-slug-vendor-login .entry-header,
body.page-slug-vendor-login .ast-archive-description { display: none !important; }
body.page-slug-vendor-login.ast-separate-container .ast-article-single,
body.page-slug-vendor-login.ast-separate-container .ast-article-post {
    background: transparent !important; padding: 0 !important; border: none !important; box-shadow: none !important;
}
body.page-slug-vendor-login .entry-content { padding: 0 !important; margin: 0 !important; }

/* Wrap */
.ahm-login-wrap {
    min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background: #ffffff;
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
}

/* Card */
.ahm-login-card {
    width: 100%; max-width: 440px; background: var(--bg-base);
    border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 40px 36px; position: relative;
    border-top: 3px solid var(--brand);
}

/* Logo */
.ahm-login-logo { text-align: center; margin-bottom: 24px; }
.ahm-login-logo a { display: inline-block; }
.ahm-login-logo img { max-height: 80px; height: auto; width: auto; object-fit: contain; }
.ahm-login-logo-text { font-size: 26px; font-weight: 700; color: var(--brand); }
.ahm-login-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--heading); margin: 0 0 6px; }
.ahm-login-subtitle { text-align: center; font-size: 13px; color: var(--text); margin: 0 0 24px; }

/* 역할 탭 */
.ahm-login-tabs {
    display: flex; border-bottom: 2px solid #eee; margin-bottom: 24px;
}
.ahm-login-tab {
    flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 600;
    color: var(--text); text-decoration: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; cursor: pointer; transition: all 0.2s;
}
.ahm-login-tab:hover { color: var(--brand); }
.ahm-login-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Form */
.ahm-login-form { }
.ahm-login-field { margin-bottom: 16px; }
.ahm-login-field label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.ahm-login-input-wrap {
    display: flex; align-items: center; gap: 10px; border: 1.5px solid #e0e0e0;
    border-radius: 8px; padding: 0 14px; height: 46px; transition: border-color 0.2s;
    background: var(--bg-base);
}
.ahm-login-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(220,165,74,0.1); }
.ahm-login-input-wrap input {
    flex: 1; border: none; outline: none; font-size: 14px; color: var(--heading);
    background: transparent; font-family: inherit; height: 100%;
}
.ahm-login-input-wrap input::placeholder { color: #bbb; }

/* Options */
.ahm-login-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ahm-login-remember { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ahm-login-remember input { accent-color: var(--brand); }
.ahm-login-forgot { font-size: 13px; color: var(--text); text-decoration: none; }
.ahm-login-forgot:hover { color: var(--brand); }

/* Button */
.ahm-login-btn {
    width: 100%; height: 48px; border: none; border-radius: 8px;
    background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.ahm-login-btn:hover { background: var(--brand-alt); }
.ahm-login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Result */
.ahm-login-result { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.ahm-login-result.success { background: #ecfdf5; color: #16a34a; }
.ahm-login-result.error { background: #fef2f2; color: #dc2626; }
.ahm-login-result a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* Footer */
.ahm-login-footer { margin-top: 24px; text-align: center; }
.ahm-login-footer p { font-size: 13px; color: var(--text); margin: 6px 0; }
.ahm-login-footer a { color: var(--brand); font-weight: 600; text-decoration: none; }
.ahm-login-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .ahm-login-card { padding: 28px 20px; border-radius: 12px; }
    .ahm-login-wrap { padding: 20px 12px; }
}
