#main {
    padding-top: 120px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login-section,
#signup-section,
#user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#forgot-password-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#reset-password-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    padding: 40px 32px 32px 32px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: #7f9cf5;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    text-align: center;
}

.login-desc {
    font-size: 1rem;
    color: #888;
    margin-bottom: 28px;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    font-size: 0.98rem;
    color: #222;
    margin-top: 10px;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f7f8fa;
    transition: border 0.2s;
}

.form-group input:focus {
    border: 1.5px solid #7f9cf5;
    outline: none;
    background: #fff;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #bbb;
    user-select: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 8px;
}

.remember-me {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.forgot-password {
    font-size: 0.95rem;
    color: #7f9cf5;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #4e6edb;
}

.login-form .login-btn {
    width: 100%;
    background: #1a4fa0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 24px 0px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form .login-btn:hover {
    color: #fff;
    background: #0d2b5e;
    transform: translateY(-1px);
}

.login-form .login-btn:active {
    transform: translateY(0);
}

.login-form .login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.signup-link {
    margin-top: 22px;
    font-size: 0.98rem;
    color: #888;
    text-align: center;
}

.signup-link a {
    color: #7f9cf5;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s;
}

.signup-link a:hover {
    color: #4e6edb;
}

@media (max-width: 500px) {
    .login-container {
        padding: 24px 8px 18px 8px;
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 10px;
    color: #888;
    font-size: 0.9rem;
}

.google-btn, .kakao-btn, .github-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 48px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    margin: 0 auto 16px auto;
    gap: 16px;
    padding-left: 10px;
}
.google-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #222;
    transition: background 0.2s, border 0.2s;
}
.google-btn:hover {
    background: #f5f5f5;
    border-color: #c6c6c6;
}
.kakao-btn {
    background: #fee500;
    border: none;
    color: #191600;
    transition: background 0.2s;
}
.kakao-btn:hover {
    background: #ffeb3b;
}
.github-btn {
    background: #24292e;
    border: none;
    color: #fff;
    transition: background 0.2s;
}
.github-btn:hover {
    background: #2f363d;
}
.google-btn img,
.kakao-btn img,
.github-btn img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.google-btn span,
.kakao-btn span,
.github-btn span {
    flex: 1;
    text-align: center;
    z-index: 1;
}

#user-info {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: auto;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    border: 1px solid #eee;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.user-details {
    text-align: center;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.user-details .profile-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #eee;
    margin-bottom: 2px;
}

.user-details h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.user-details p {
    margin: 0 0 4px 0;
    color: #555;
    font-size: 0.97rem;
    line-height: 1.4;
}

#user-extra {
    margin-top: 8px;
    font-size: 0.93rem;
    color: #888;
    text-align: left;
    padding: 0;
}
#user-extra p {
    margin: 2px 0;
    color: #888;
    font-size: 0.93rem;
}
#user-extra img {
    margin-top: 6px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.button-container {
    margin-top: 10px;
    width: 100%;
    padding: 0;
}

#logout-btn, .disconnect-btn, .admin-btn {
    margin-top: 10px;
    padding: 14px 0;
    font-size: 1.08rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 55, 153, 0.08);
    width: 100%;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
#logout-btn {
    background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%);
    color: #fff;
}
#logout-btn:hover {
    background: linear-gradient(90deg, #ffc371 0%, #ff5f6d 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 95, 109, 0.12);
    transform: translateY(-2px) scale(1.03);
}
.disconnect-btn {
    background: linear-gradient(90deg, #868f96 0%, #596164 100%);
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.08rem;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(134, 143, 150, 0.10);
    padding: 0;
    min-height: 48px;
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.5s cubic-bezier(0.4,0,0.2,1), color 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
    line-height: 48px;
}
.disconnect-btn:hover {
    background: linear-gradient(90deg, #596164 0%, #868f96 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(134, 143, 150, 0.15);
    transform: translateY(-2px) scale(1.03);
}
.disconnect-btn:disabled {
    background: linear-gradient(90deg, #bdc3c7 0%, #95a5a6 100%);
    color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.disconnect-btn:disabled:hover {
    background: linear-gradient(90deg, #bdc3c7 0%, #95a5a6 100%);
    color: #7f8c8d;
    transform: none;
    box-shadow: none;
}
.admin-btn {
    background: linear-gradient(90deg, #1e3799 0%, #4a69bd 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
    margin-top: 12px;
}

.admin-btn:hover {
    background: linear-gradient(90deg, #4a69bd 0%, #1e3799 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 55, 153, 0.2);
}

.admin-btn i {
    font-size: 16px;
}

.admin-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 700px) {
    #user-info, .login-container {
        max-width: 98vw;
        padding: 16px 4px;
    }
}

.google-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.google-info .user-meta {
    margin: 8px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.google-info .user-meta:first-child {
    color: #1a4fa0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .login-container {
        padding: 24px 16px;
        margin: 0 12px;
        width: calc(100% - 24px);
    }

    .login-logo {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .login-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .login-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .login-form .login-btn {
        padding: 14px 0;
        font-size: 1rem;
    }

    .google-btn img {
        width: 20px;
        height: 20px;
    }

    .signup-link {
        font-size: 0.9rem;
    }

    #user-info {
        padding: 24px 16px;
        margin: 0 12px;
        width: calc(100% - 24px);
    }

    .user-details .profile-img {
        width: 48px;
        height: 48px;
    }

    .user-details h3 {
        font-size: 1rem;
    }

    .user-details p {
        font-size: 0.9rem;
    }

    #logout-btn, .disconnect-btn {
        padding: 12px 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 12px;
        margin: 0 8px;
        width: calc(100% - 16px);
    }

    .login-logo {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .login-form .login-btn {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .google-btn, .kakao-btn, .github-btn {
        height: 44px;
        font-size: 1rem;
        padding-left: 36px;
    }

    .google-btn img,
    .kakao-btn img,
    .github-btn img {
        left: 10px;
        width: 20px;
        height: 20px;
    }

    #user-info {
        padding: 20px 12px;
        margin: 0 8px;
        width: calc(100% - 16px);
    }

    .user-details .profile-img {
        width: 44px;
        height: 44px;
    }

    .user-details h3 {
        font-size: 0.95rem;
    }

    .user-details p {
        font-size: 0.85rem;
    }

    #logout-btn, .disconnect-btn {
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a4fa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #1a4fa0;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .google-btn, .kakao-btn, .github-btn {
        max-width: 98vw;
        min-width: 0;
        width: 100%;
        height: 42px;
        font-size: 0.85rem;
        padding-left: 6px;
        gap: 10px;
    }
    .google-btn img,
    .kakao-btn img,
    .github-btn img {
        left: 6px;
        width: 18px;
        height: 18px;
    }
    .google-btn span,
    .kakao-btn span,
    .github-btn span {
        font-size: 0.95em;
        padding-left: 2px;
        padding-right: 2px;
        word-break: keep-all;
    }
}
