/* 
   DAGANDA PREMIUM FORM STYLES
   Used for: B2B Partnership, Store Join, and other ACF-based forms
   ========================================================================== */

/* 1. Global ACF Form Container */
.dgd-apply-form-area .acf-form {
    max-width: 100%;
}

/* 2. Field Row Layout */
.dgd-apply-form-area .acf-fields.-top>.acf-field {
    border: none;
    padding: 0;
    margin-bottom: 4px;
}

/* 3. Labels */
.dgd-apply-form-area .acf-label label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0B2860;
    margin-bottom: 8px;
}

.dgd-apply-form-area .acf-label label .acf-required {
    color: #ef4444;
    margin-left: 2px;
}

/* 4. Input Controls */
.dgd-apply-form-area .acf-input input[type="text"],
.dgd-apply-form-area .acf-input input[type="tel"],
.dgd-apply-form-area .acf-input input[type="email"],
.dgd-apply-form-area .acf-input input[type="url"],
.dgd-apply-form-area .acf-input select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid var(--border-color-darker) !important;
    border-radius: var(--border-radius-default) !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #1E293B !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.dgd-apply-form-area .acf-input textarea {
    width: 100% !important;
    min-height: 120px !important;
    padding: 14px 16px !important;
    border: 1px solid var(--border-color-darker) !important;
    border-radius: var(--border-radius-default) !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #1E293B !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    resize: vertical;
}

.dgd-apply-form-area .acf-input input:focus,
.dgd-apply-form-area .acf-input select:focus,
.dgd-apply-form-area .acf-input textarea:focus {
    border-color: #0056FF !important;
    box-shadow: 0 0 0 4px rgba(0, 86, 255, 0.1) !important;
    background: #fff !important;
}

/* Auth / Verify Modal Form Styling */
#profile-verify-form {
    padding: 30px;
    background: #fff;
    border-radius: 24px;
}

.btn-auth-submit {
    width: 100%;
    height: 54px;
    background: #0056FF;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.2);
    margin-top: 20px;
}

.btn-auth-submit:hover {
    background: #0046AD;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 86, 255, 0.3);
}

/* 5. Checkbox & Radio Custom Styling */
.dgd-apply-form-area .acf-checkbox-list,
.dgd-apply-form-area .acf-radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.dgd-apply-form-area .acf-checkbox-list li,
.dgd-apply-form-area .acf-radio-list li {
    font-size: 14px;
    color: #64748B;
}

/* 6. Submit Button */
.dgd-apply-form-area .af-submit,
.dgd-apply-form-area .acf-form-submit {
    margin-top: 10px;
}

.dgd-apply-form-area .af-submit button,
.dgd-apply-form-area .acf-button {
    width: 100% !important;
    padding: 18px !important;
    background: #0056FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.25) !important;
}

.dgd-apply-form-area .af-submit button:hover,
.dgd-apply-form-area .acf-button:hover {
    background: #0046AD !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 86, 255, 0.35) !important;
}

/* 7. Success Card UI */
.dgd-success-card {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    animation: fadeInUp 0.5s ease-out;
}

.dgd-success-icon {
    width: 80px;
    height: 80px;
    background: #E0F2FE;
    color: #0056FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. Helper Classes */
.acf-fields.-left>.acf-field:before {
    display: none;
}

.acf-notice.-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 8px;
    color: #b91c1c;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 9. Select2 (ACF Dropdown) Custom Styling */
.dgd-apply-form-area .select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--border-color-darker) !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    outline: none !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
}

.dgd-apply-form-area .select2-container--default.select2-container--open .select2-selection--single,
.dgd-apply-form-area .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0056FF !important;
    box-shadow: 0 0 0 4px rgba(0, 86, 255, 0.1) !important;
}

.dgd-apply-form-area .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1E293B !important;
    line-height: normal !important;
    font-size: 15px !important;
    padding-left: 0 !important;
    width: 100% !important;
}

.dgd-apply-form-area .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8 !important;
}

.dgd-apply-form-area .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dgd-apply-form-area .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748B transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

/* ==========================================================================
   ★ Daganda Premium Auth Forms (Register, Lost Password, Find ID) ★
   ========================================================================== */
#primary .daganda-auth-wrapper {
    max-width: 500px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 5px 15px rgba(15, 23, 42, 0.04);
    padding: 40px;
    border: 1px solid #f1f5f9;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -1px;
}

.auth-logo a span {
    color: #2563eb;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

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

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Input with button (Verification email send/verify) */
.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.input-with-btn button {
    height: 48px;
    padding: 0 20px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.input-with-btn button:hover {
    background: #1e293b;
}

/* Input with icon (Password visibility toggle) */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 48px;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pass:hover {
    color: #475569;
}

.btn-toggle-pass.eye-off::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1.5px;
    background-color: currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}

.timer-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
}

/* Policy checkboxes */
.auth-policy-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color-darker);
}

.policy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.policy-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.policy-item label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.policy-item label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.btn-view-policy {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-view-policy:hover {
    color: #475569;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    height: 52px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    margin-top: 24px;
}

.btn-auth-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

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

/* Footer links */
.auth-footer-links {
    text-align: center;
    margin-top: 24px;
}

.auth-footer-links a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}

.auth-footer-links a strong {
    color: #2563eb;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

/* Social Login Footer */
.auth-social-footer {
    margin-top: 32px;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    text-align: center;
}

.auth-social-footer p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
}

.social-icons .icon-kakao {
    background-color: #FEE500;
    color: #191919;
}

.social-icons .icon-naver {
    background-color: #03C75A;
    color: #ffffff;
}

.social-icons .icon-google {
    background-color: #ffffff;
    color: #1f1f1f;
    border: 1px solid var(--border-color-darker);
}

/* Verification Notice */
.auth-notice {
    text-align: center;
    padding: 30px;
    font-size: 15px;
    color: #475569;
}

.auth-notice a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.auth-notice a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ★ Ajungdang Style Social Login & Buttons ★
   ========================================================================== */
.daganda-auth-wrapper.dgd-style {
    padding: 50px 40px;
}

.auth-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.3px !important;
    text-align: center !important;
}

.auth-main-title {
    font-size: 22px !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    text-align: center !important;
}

.social-login-buttons-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 15px;
}

.kakao-tooltip {
    position: relative;
    background: #2b2b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.kakao-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #2b2b2b transparent transparent;
    display: block;
    width: 0;
}

.btn-social-v2 {
    width: 100% !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: relative !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.btn-social-v2:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn-social-v2:active {
    transform: translateY(0) !important;
}

.btn-social-v2.kakao {
    background-color: #FEE500 !important;
    color: #191919 !important;
}

.btn-social-v2.naver {
    background-color: #03C75A !important;
    color: #ffffff !important;
}

.btn-social-v2.apple {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.btn-social-v2 .naver-n-logo {
    font-weight: 900 !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    margin-right: 2px !important;
}

.modal-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.modal-footer-v2 a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.modal-footer-v2 a strong {
    color: #0f172a !important;
}

.modal-footer-v2 a:hover {
    text-decoration: underline !important;
}

.modal-footer-v2 .sep {
    color: #cbd5e1 !important;
}

/* Login Modal Ajungdang Styling override */
.login-modal-content.dgd-style {
    max-width: 440px !important;
    padding: 40px !important;
    border-radius: 24px !important;
}

/* ==========================================================================
   🔑 아정당 벤치마크 로그인 페이지 전용 스타일 (/login, /login/email)
   ========================================================================== */
.dgd-auth-page-container {
    background-color: #F8FAFC;
    min-height: calc(100vh - 220px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px 80px;
    box-sizing: border-box;
}

.dgd-auth-card {
    background: #FFFFFF;
    border: 1px solid #EDF2F7;
    border-radius: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 440px;
    padding: 44px 36px 40px;
    text-align: center;
    box-sizing: border-box;
}

.dgd-auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.auth-sub-desc {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
    margin: 0 0 6px;
}

.auth-main-headline {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 28px;
    line-height: 1.35;
    word-break: keep-all;
}

/* 카카오 1초 로그인 메인 섹션 */
.dgd-auth-primary-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kakao-badge-tooltip {
    position: relative;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    animation: ajd-bounce 2s infinite;
}

.kakao-badge-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1E293B transparent transparent;
    display: block;
    width: 0;
}

@keyframes ajd-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-2px);
    }
}

.btn-ajd-social {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    gap: 8px;
    box-sizing: border-box;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.btn-ajd-social:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-ajd-kakao {
    background-color: #FEE500;
    color: #191919 !important;
}

.btn-ajd-naver {
    background-color: #03C75A;
    color: #FFFFFF !important;
    margin-bottom: 10px;
}

.btn-ajd-apple {
    background-color: #000000;
    color: #FFFFFF !important;
}

.naver-n-symbol {
    font-weight: 900;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* 다른 방법으로 로그인 토글 */
.dgd-auth-toggle-wrap {
    margin-top: 22px;
}

.dgd-auth-toggle-wrap.is-hidden {
    display: none !important;
}

.btn-toggle-other-methods {
    background: none;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s;
}

.btn-toggle-other-methods:hover {
    color: #1E293B;
}

.toggle-arrow-icon {
    transition: transform 0.25s ease;
}

.btn-toggle-other-methods.active .toggle-arrow-icon {
    transform: rotate(180deg);
}

/* 아코디언 드로어 */
.dgd-auth-accordion-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.dgd-auth-accordion-drawer.open {
    max-height: 220px;
    opacity: 1;
    margin-top: 14px;
}

.email-login-link-container {
    margin-top: 20px;
    padding-top: 6px;
}

.btn-email-login-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none !important;
    transition: color 0.15s;
}

.btn-email-login-text:hover {
    color: #0F172A;
    text-decoration: underline !important;
}

/* ==========================================================================
   📧 이메일 로그인 폼 전용 스타일 (/login/email)
   ========================================================================== */
.ajd-login-form {
    text-align: left;
    margin-top: 16px;
}

.ajd-form-group {
    margin-bottom: 16px;
}

.ajd-form-label,
.dgd-auth-card .ajd-form-label {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
}

.ajd-input-wrap {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   🍏 애플 스타일 폼 입력창 (Apple-inspired Form Input & Signature Focus Ring)
   ========================================================================== */
.dgd-auth-card input[type="email"].ajd-input-text,
.dgd-auth-card input[type="password"].ajd-input-text,
.dgd-auth-card input[type="text"].ajd-input-text,
.ajd-login-form input[type="email"],
.ajd-login-form input[type="password"],
.ajd-login-form input[type="text"],
.ajd-input-text,
.dgd-form-input,
.dgd-partner-register-container .dgd-input,
.dgd-partner-register-container input[type="text"],
.dgd-partner-register-container input[type="email"],
.dgd-partner-register-container input[type="password"],
.dgd-partner-register-container input[type="tel"] {
    width: 100% !important;
    height: 44px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #1d1d1f !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    line-height: 1.5 !important;
    letter-spacing: -0.016em !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease !important;
}

.dgd-auth-card input.ajd-input-text::placeholder,
.ajd-login-form input::placeholder,
.ajd-input-text::placeholder,
.dgd-form-input::placeholder,
.dgd-partner-register-container .dgd-input::placeholder,
.dgd-partner-register-container input::placeholder {
    color: #86868b !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    opacity: 1 !important;
}

.dgd-auth-card input[type="email"].ajd-input-text:hover,
.dgd-auth-card input[type="password"].ajd-input-text:hover,
.dgd-auth-card input[type="text"].ajd-input-text:hover,
.ajd-login-form input:hover,
.ajd-input-text:hover,
.dgd-form-input:hover,
.dgd-partner-register-container .dgd-input:hover,
.dgd-partner-register-container input:hover {
    border-color: #86868b !important;
}

/* 🍏 애플 시그니처 4px 소프트 포커스 글로우 링 (#0071e3) */
.dgd-auth-card input[type="email"].ajd-input-text:focus,
.dgd-auth-card input[type="password"].ajd-input-text:focus,
.dgd-auth-card input[type="text"].ajd-input-text:focus,
.ajd-login-form input:focus,
.ajd-input-text:focus,
.dgd-form-input:focus,
.dgd-partner-register-container .dgd-input:focus,
.dgd-partner-register-container input:focus {
    border-color: #0071e3 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16) !important;
    outline: none !important;
}

.ajd-input-wrap.password-wrap .ajd-input-text,
.ajd-input-wrap.password-wrap input {
    padding-right: 48px !important;
}

/* 에러 / 경고 상태 (시맨틱 레드) */
.dgd-auth-card input.is-invalid,
.ajd-input-text.is-invalid,
.dgd-form-input.is-invalid {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.16) !important;
}

.btn-password-visibility-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-password-visibility-toggle:hover {
    color: #1d1d1f;
    background-color: #f5f5f7;
}

.btn-password-visibility-toggle.active {
    color: #0071e3;
}

.ajd-helper-text {
    font-size: 12px;
    color: #86868b;
    margin: 8px 0 24px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.ajd-login-error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 12.5px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-ajd-login-submit {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background-color: #93C5FD;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: not-allowed;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-ajd-login-submit.ready {
    background-color: #2563EB;
    cursor: pointer;
}

.btn-ajd-login-submit.ready:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

/* 간편 로그인 섹션 */
.ajd-social-easy-login-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}

.easy-login-title {
    display: block;
    font-size: 12.5px;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 16px;
}

.easy-social-icons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-circle-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-circle-social:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.circle-kakao {
    background-color: #FEE500;
}

.circle-naver {
    background-color: #03C75A;
}

.naver-circle-n {
    color: #FFFFFF;
    font-weight: 900;
    font-size: 17px;
    font-family: Arial, sans-serif;
}

.circle-apple {
    background-color: #000000;
}

/* 계정 찾기 하단 링크 */
.ajd-auth-bottom-links {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}

.bottom-nav-link {
    color: #64748B !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s;
}

.bottom-nav-link:hover {
    color: #0F172A !important;
    text-decoration: underline !important;
}

.nav-separator {
    color: #CBD5E1;
    font-size: 11px;
}

/* 비로그인 알림 종 아이콘 토스트 (아정당 벤치마크) */
.dgd-guest-toast {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 999999;
    min-width: 290px;
    background: #555555;
    background: rgba(60, 65, 75, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px 10px 16px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

.dgd-guest-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dgd-toast-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dgd-toast-badge-icon {
    width: 20px;
    height: 20px;
    background-color: #EF4444;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.dgd-toast-text {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.dgd-toast-close {
    background: none;
    border: none;
    color: #CBD5E1;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.15s ease;
}

.dgd-toast-close:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .dgd-guest-toast {
        right: -80px;
        min-width: 270px;
    }
}