/* Auth Dropdown Styles */
.auth-menu-item {
    position: relative;
    display: inline-block;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e1e4e8;
}

.auth-btn:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent-color, #c5a059);
    border-color: var(--accent-color, #c5a059);
}

.auth-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 2000;
    margin-top: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.auth-dropdown-content::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.auth-menu-item:hover .auth-dropdown-content {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.3s ease forwards;
}

.auth-dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.auth-dropdown-content a i {
    width: 20px;
    color: #999;
    font-size: 13px;
}

.auth-dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color, #1a365d);
}

.auth-dropdown-content a:hover i {
    color: var(--accent-color, #c5a059);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.signup-container {
    width: 96vw;
    max-width: 1200px;
    height: 92vh;
    max-height: 920px;
    min-height: 720px;
    padding: 0;
    background: #fff;
}

.signup-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 720px;
    border: 0;
    border-radius: 20px;
    background: #fff;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 30px 30px 10px;
    text-align: center;
}

.modal-header h2 {
    color: var(--primary-color, #1a365d);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-serif, serif);
}

.modal-header p {
    color: #666;
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px 30px 40px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    transition: color 0.3s;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color, #c5a059);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.form-control:focus+i,
.input-with-icon:focus-within i {
    color: var(--accent-color, #c5a059);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color, #1a365d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.btn-submit:hover {
    background: #152c4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.modal-footer a {
    color: var(--accent-color, #c5a059);
    font-weight: 600;
    margin-left: 5px;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.social-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #555;
    transition: all 0.3s;
    font-size: 18px;
}

.social-btn.kakao {
    background: #fee500;
    border-color: #fee500;
    color: #3c1e1e;
}

.social-btn.naver {
    background: #03c75a;
    border-color: #03c75a;
    color: #fff;
}

.social-btn.google {
    background: #fff;
    border-color: #ddd;
}

.social-btn:hover {
    transform: scale(1.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrapper input {
    margin-right: 8px;
    accent-color: var(--primary-color, #1a365d);
    width: 16px;
    height: 16px;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.forgot-password {
    margin-left: auto;
    font-size: 13px;
    color: #888;
}

/* Specific styling for Signup Modal */
.modal-container.signup-container {
    width: 96vw;
    max-width: 1200px;
    height: 92vh;
    max-height: 920px;
    min-height: 720px;
}

.modal-container.signup-container .modal-close {
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

@media (max-width: 768px) {
    .signup-container,
    .modal-container.signup-container {
        width: 94vw;
        height: 88vh;
        min-height: 0;
    }

    .signup-frame {
        min-height: 0;
    }
}

.terms-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    height: 100px;
    overflow-y: auto;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
