@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --kmp-glass: rgba(255, 255, 255, 0.7);
    --kmp-brand: #4a6ee0;
    --kmp-brand-hover: #3a5ccc;
    --kmp-text: #1a1c21;
    --kmp-text-light: #64748b;
    --kmp-kakao: #fee500;
    --kmp-naver: #03c75a;
    --kmp-border: rgba(255, 255, 255, 0.3);
}

/* Landing Page Trigger Button */
.kmp-trigger-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.kmp-btn-primary {
    background: var(--kmp-brand);
    color: #fff !important;
    padding: 0.875rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 110, 224, 0.2);
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

.kmp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 110, 224, 0.3);
}

.kmp-link-register {
    color: var(--kmp-brand);
    font-size: 0.8125rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Modal Overlay */
#kmp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

#kmp-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Card */
.kmp-modal-card {
    background: var(--kmp-glass);
    border: 1px solid var(--kmp-border);
    backdrop-filter: blur(25px);
    width: 100%;
    max-width: 420px;
    border-radius: 2rem;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Outfit', sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

#kmp-modal-overlay.active .kmp-modal-card {
    transform: scale(1);
}

.kmp-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    border: none;
    color: var(--kmp-text-light);
    cursor: pointer;
    z-index: 10;
}

/* Responsive Scaling */
@media (max-width: 480px) {
    .kmp-modal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1.5rem;
    }

    .kmp-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .kmp-social-btn {
        height: 3.25rem !important;
        font-size: 0.875rem !important;
    }

    .kmp-input,
    .kmp-submit-btn {
        height: 3.25rem !important;
        font-size: 0.9375rem !important;
    }
}

/* Views & Animations */
.kmp-auth-view {
    display: none;
}

.kmp-auth-view.active {
    display: block;
    animation: kmpFadeIn 0.4s ease;
}

@keyframes kmpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kmp-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--kmp-text);
    text-align: center;
    letter-spacing: -0.02em;
}

/* Social Buttons */
.kmp-social-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.kmp-social-btn {
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.kmp-social-btn:hover {
    transform: scale(1.02);
}

.kmp-btn-kakao {
    background: var(--kmp-kakao);
    color: #3c1e1e !important;
}

.kmp-btn-naver {
    background: var(--kmp-naver);
    color: #fff !important;
}

.kmp-btn-google {
    background: #fff;
    color: #1f1f1f !important;
}

.kmp-btn-apple {
    background: #000;
    color: #fff !important;
}

/* Separator */
.kmp-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--kmp-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

.kmp-divider::before,
.kmp-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.kmp-divider:before {
    margin-right: 1rem;
}

.kmp-divider:after {
    margin-left: 1rem;
}

/* Forms */
.kmp-field {
    margin-bottom: 1rem;
}

.kmp-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--kmp-text-light);
    margin-bottom: 0.375rem;
}

.kmp-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.kmp-input:focus {
    border-color: var(--kmp-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 110, 224, 0.08);
}

.kmp-submit-btn {
    width: 100%;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--kmp-brand);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s ease;
}

.kmp-submit-btn:hover {
    background: var(--kmp-brand-hover);
}

.kmp-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--kmp-text-light);
}

.kmp-switch-view {
    color: var(--kmp-brand);
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.25rem;
}

.kmp-switch-view:hover {
    text-decoration: underline;
}