/**
 * 사용자 로그인 페이지 스타일
 */

/* 로그인 페이지 */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.95);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

/* 배경 장식 요소 - 시안-청록 글로우 */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatDeco 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 199, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatDeco 10s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatDeco {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* 로고 영역 */
.login-logo {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: slideDown 0.6s ease-out;
}

.login-logo img {
    height: 500px;
    width: 400px;
    margin: -200px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 60px rgba(0, 212, 255, 0.2),
        0 4px 30px rgba(0, 229, 199, 0.15),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.login-container h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.login-container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-gradient);
    border-radius: 2px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
    animation: slideIn 0.4s ease-out;
    font-weight: 500;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    animation: slideIn 0.4s ease-out;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* SNS 로그인 */
.sns-login {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* SNS 로그인 버튼 컨테이너 */
.sns-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* SNS 로그인 버튼 공통 스타일 */
.btn-sns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-sns::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-sns:hover::before {
    width: 100%;
    height: 300px;
}

.btn-sns:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-sns:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sns-text {
    flex: 1;
    text-align: center;
}

/* 네이버 로그인 버튼 */
.btn-naver {
    background: linear-gradient(135deg, #03C75A 0%, #02b350 100%);
    color: #fff;
}

.btn-naver:hover {
    background: linear-gradient(135deg, #02b350 0%, #019e45 100%);
}

.naver-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-size: 0.75rem;
}

/* 카카오 로그인 버튼 */
.btn-kakao {
    background: linear-gradient(135deg, #FEE500 0%, #f5d800 100%);
    color: #000;
}

.btn-kakao:hover {
    background: linear-gradient(135deg, #f5d800 0%, #e6c800 100%);
}

.kakao-icon {
    color: #000;
}

.kakao-icon svg {
    width: 18px;
    height: 18px;
}

/* 로그인 푸터 */
.login-footer {
    margin-top: 2.5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-home {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

/* 디바이스별 반응형 디자인 */
/* 모바일 중형 (480px ~ 767px) */
@media (max-width: 767px) {
    .login-wrapper {
        padding: 1rem;
    }
    
    .login-logo {
        margin-bottom: 2rem;
    }
    
    .login-logo img {
        height: 450px;
        width: 350px;
        margin: -185px;
    }
    
    .login-container {
        padding: 2rem 1.75rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .login-container h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    
    .login-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-sns {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .sns-icon {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

/* 모바일 소형 (320px ~ 479px) */
@media (max-width: 479px) {
    .login-wrapper {
        padding: 0.75rem;
    }
    
    .login-logo {
        margin-bottom: 1.5rem;
    }
    
    .login-logo img {
        height: 400px;
        width: 300px;
        margin: -170px;
    }
    
    .login-container {
        padding: 1.75rem 1.5rem;
        margin: 0.75rem;
        border-radius: 16px;
    }
    
    .login-container h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input {
        font-size: 0.9rem;
        padding: 0.65rem;
    }
    
    .form-actions {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.65rem;
    }
    
    .login-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .sns-buttons {
        gap: 0.625rem;
    }
    
    .btn-sns {
        padding: 0.7rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .sns-icon {
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }
    
    .login-footer {
        margin-top: 1.5rem;
    }
    
    .btn-home {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}

