﻿.auth-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.login-btn, .my-info-btn, .logout-btn {
    padding: 8px 16px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .login-btn:hover, .my-info-btn:hover, .logout-btn:hover {
        background: #3a3a3a;
        border-color: #555;
    }

.my-info-btn {
    background: #0d6efd;
    border-color: #0d6efd;
}

    .my-info-btn:hover {
        background: #0b5ed7;
        border-color: #0a58ca;
    }

.logout-btn {
    background: transparent;
    color: #ccc;
    border-color: #555;
}

    .logout-btn:hover {
        background: #208ef5;
        border-color: #208ef5;
        color: #fff;
    }

/*처음 로드시 토스트 메세지*/
.toast-popup {
    position: fixed;
    top: 10px;
    right: 100px;
    width: 250px;
    height: 100px;
    background: #333;
    color: #ccc;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(250px);
    transition: transform 0.3s ease;
    border-left: 4px solid #fa4646;
}

    .toast-popup.show {
        transform: translateX(0);
    }

.toast-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.toast-title {
    font-size: 15px;
    font-weight: bold;
}

.toast-message {
    font-size: 13px;
    line-height: 1.3;
}
.toast-sub-message {
    color: white;
    font-weight:bold;
}

.left-side-login-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

    .left-side-login-modal-overlay.show {
        display: flex !important;
        display: flex;
        opacity: 1;
    }

.left-side-login-modal-container {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 32px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative !important;
}

.left-side-login-modal-overlay.show .left-side-login-modal-container {
    transform: scale(1);
}

.left-side-login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.left-side-login-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.left-side-login-close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .left-side-login-close-btn:hover {
        background: #333;
        color: #fff;
    }

.left-side-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-side-login-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .left-side-login-input-group label {
        color: #ccc;
        font-size: 14px;
        font-weight: 500;
    }

    .left-side-login-input-group input {
        background: #2a2a2a;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 12px 16px;
        color: #fff;
        font-size: 16px;
        transition: all 0.2s ease;
    }

        .left-side-login-input-group input:focus {
            outline: none;
            border-color: #fa4646; 
            box-shadow: 0 0 0 3px rgba(250, 70, 70, 0.1);
        }

        .left-side-login-input-group input::placeholder {
            color: #666;
        }

.left-side-login-checkbox-group {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.left-side-login-checkbox-label {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

    .left-side-login-checkbox-label input[type="checkbox"] {
        display: none;
    }

.left-side-login-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.left-side-login-checkbox-label input[type="checkbox"]:checked + .left-side-login-checkmark {
    background: #fa4646; 
    border-color: #fa4646; 
}

    .left-side-login-checkbox-label input[type="checkbox"]:checked + .left-side-login-checkmark::after {
        content: "✓";
        color: #fff;
        font-size: 12px;
        font-weight: bold;
    }

.left-side-login-submit-btn {
    background: linear-gradient(135deg, #fa4646, #e03e3e);
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

    .left-side-login-submit-btn:hover {
        background: linear-gradient(135deg, #e03e3e, #d63636);
        transform: translateY(-1px);
    }

.left-side-login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

    .left-side-login-links .left-side-login-link {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s ease;
    }

        .left-side-login-links .left-side-login-link:hover {
            color: #e03e3e;
            text-decoration: underline;
        }

    .left-side-login-links .left-side-login-divider {
        color: #666;
        font-size: 12px;
    }

.left-side-login-phone-input-wrapper {
    display: flex;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

    .left-side-login-phone-input-wrapper:focus-within {
        border-color: #fa4646;
        box-shadow: 0 0 0 3px rgba(250, 70, 70, 0.1);
    }

.left-side-login-country-code {
    background: #2a2a2a;
    border: none;
    color: #fff;
    padding: 12px 10px;
    font-size: 14px;
    width: 120px; /* 고정 폭 */
    border-right: 1px solid #444;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ccc" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    flex-shrink: 0; /* 줄어들지 않게 */
}

    .left-side-login-country-code option {
        background: #2a2a2a;
        color: #fff;
    }

.left-side-login-phone-input-wrapper input {
    background: #2a2a2a;
    border: none;
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
    flex: 1; /* 남은 공간 차지 */
    outline: none;
}

    .left-side-login-phone-input-wrapper input::placeholder {
        color: #666;
    }

/* 기존 input-group CSS는 그대로 유지 */
.left-side-login-input-group input {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
}

    .left-side-login-input-group input:focus {
        outline: none;
        border-color: #fa4646;
        box-shadow: 0 0 0 3px rgba(250, 70, 70, 0.1);
    }

.left-side-login-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .left-side-login-password-wrapper input {
        background: #2a2a2a;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 12px 45px 12px 16px; /* 오른쪽에 아이콘 공간 확보 */
        color: #fff;
        font-size: 16px;
        transition: all 0.2s ease;
        width: 100%;
    }

        .left-side-login-password-wrapper input:focus {
            outline: none;
            border-color: #fa4646;
            box-shadow: 0 0 0 3px rgba(250, 70, 70, 0.1);
        }

        .left-side-login-password-wrapper input::placeholder {
            color: #666;
        }

.left-side-login-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

    .left-side-login-password-toggle:hover {
        color: #fa4646;
    }

    .left-side-login-password-toggle i {
        font-size: 16px;
    }

.login-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.left-side-login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.my-info-btn.circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fa4646 0%, #e03e3e 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

    .my-info-btn.circle-icon:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    }

/* 나의 프로필 */
.left-side-login-user-dropdown {
    position: relative;
    display: inline-block;
}

/* 드롭다운 메뉴 */
.left-side-login-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 250px;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0) translateY(0); /* X축으로 20px 왼쪽으로 이동 */
    transition: all 0.3s ease;
    transform-origin: top right;

}

    .left-side-login-user-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) translateY(0);
    }

/* 드롭다운 아이템 */
.left-side-login-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    margin-left:0 !important;
}

    .left-side-login-dropdown-item:hover {
        background: #374151;
        color: white;
    }

    .left-side-login-dropdown-item i {
        width: 16px;
        text-align: center;
        margin-right: 12px;
        display: inline-block;
    }

/* 로그아웃 아이템 */
.left-side-login-logout-item:hover {
    background: #208ef5 !important;
    color: white !important;
}

/* 드롭다운 첫 번째, 마지막 아이템 둥근 모서리 */
.left-side-login-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.left-side-login-dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.left-side-login-dropdown-divider {
    height: 2px;
    background: #374151;
}

.left-side-login-social-links {
    display: flex;
    gap: 8px;
    padding: 3px;
    margin-top:5px;
    margin-bottom:5px;
    justify-content: start;
}

.left-side-login-social-btn {
    width: 32px;
    height: 32px;
/*    border-radius: 8px;*/
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .left-side-login-social-btn:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover; /* 이미지 비율 유지 */
    display: block; /* 추가 */
}

.left-side-login-user-info {
    padding: 12px 16px;
}

.left-side-login-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.left-side-login-user-phone {
    font-size: 14px;
    color: #9ca3af;
}

.left-side-login-user-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-side-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.left-side-user-text {
    flex: 1;
    text-align: left;
}

