/* 로그인 페이지 스타일 */
.login-section {
    padding-top: 70px;
    padding: 120px 0 80px;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(66, 133, 244, 0.08) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.8;
    z-index: -1;
}

/* 회로 패턴 배경 추가 */
.login-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/circuit-pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    animation: backgroundPulse 15s infinite alternate ease-in-out;
}

@keyframes backgroundPulse {
    0% { opacity: 0.12; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.05); }
}

.login-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.login-card {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(58, 190, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 15px 40px rgba(58, 190, 255, 0.1);
}

.login-content {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.login-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(58, 123, 213, 0.2);
    animation: titleGlow 3s infinite alternate ease-in-out;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@keyframes titleGlow {
    0% { text-shadow: 0 5px 15px rgba(58, 123, 213, 0.2); }
    100% { text-shadow: 0 5px 25px rgba(58, 123, 213, 0.5); }
}

.login-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.85;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 주요 메시지 스타일 */
.login-message {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.1) 0%, rgba(0, 210, 255, 0.1) 100%);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 30px;
    border-left: 4px solid #3a7bd5;
    animation: messagePulse 2s infinite alternate ease-in-out;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@keyframes messagePulse {
    0% { box-shadow: 0 5px 15px rgba(58, 123, 213, 0.1); }
    100% { box-shadow: 0 5px 25px rgba(58, 123, 213, 0.2); }
}

.login-message p {
    margin: 0;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.05rem;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.login-message .highlight {
    font-weight: 700;
    color: #3a7bd5;
}

.login-free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 30px;
    margin-left: 8px;
    box-shadow: 0 4px 10px rgba(58, 123, 213, 0.25);
    animation: badgePulse 2s infinite alternate ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.social-login {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.google-btn, .kakao-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.google-btn {
    background-color: white;
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.google-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.google-btn:hover::before {
    transform: translateX(100%);
}

.google-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 원클릭 아이콘 추가 */
.one-click-icon {
    position: absolute;
    right: 15px;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
}

.one-click-icon i {
    font-size: 0.7rem;
}

/* 카카오 로그인 버튼 스타일 */
.kakao-btn {
    background-color: #FEE500;
    color: #3A1D1D;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.kakao-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.kakao-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(254, 229, 0, 0.3);
}

.kakao-btn:hover::before {
    transform: translateX(100%);
}

.kakao-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    position: relative;
}

.login-divider::before, 
.login-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.login-divider span {
    padding: 0 15px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.login-info {
    margin-top: auto;
    font-size: 1rem;
    color: var(--primary-color);
    background: rgba(58, 123, 213, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(58, 123, 213, 0.1);
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.login-info p {
    margin: 0 0 10px 0;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.login-info p:last-child {
    margin-bottom: 0;
}

.login-privacy {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.login-privacy a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-privacy a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-image {
    width: 50%;
    background-image: url('/images/landing-img.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(30, 58, 96, 0.7) 0%, 
                rgba(45, 50, 80, 0.6) 50%,
                rgba(25, 34, 49, 0.7) 100%);
}

.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/particles.svg');
    background-size: cover;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.login-quote {
    position: relative;
    color: white;
    text-align: center;
    padding: 30px;
    max-width: 85%;
    z-index: 5;
}

.login-quote i {
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 0.9;
    color: var(--gold-accent);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.login-quote p {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.login-feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.login-feature-item i {
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.login-feature-item span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    animation: float 5s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.icon-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.icon-3 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* AI 효과 추가 */
.ai-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 123, 213, 0.4) 0%, rgba(0, 210, 255, 0) 70%);
    animation: pulse 4s infinite ease-in-out;
    z-index: 1;
}

.ai-effect-1 {
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.ai-effect-2 {
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .login-content {
        padding: 50px 40px;
    }
    
    .login-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 960px) {
    .login-card {
        flex-direction: column;
    }
    
    .login-content, .login-image {
        width: 100%;
    }
    
    .login-image {
        height: 320px;
        order: -1;
    }
    
    .login-content {
        padding: 40px 30px;
    }
    
    .login-content h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .login-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .login-message {
        margin-bottom: 25px;
    }
    
    .login-quote p {
        font-size: 1.6rem;
    }
    
    .login-feature-item {
        padding: 10px 15px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding-top: 140px;
        min-height: calc(100vh - 140px);
        background: #fff;
    }
    
    .login-container {
        padding: 0;
        margin: 0;
        height: auto;
        min-height: calc(100vh - 140px);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .login-card {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        border: none;
    }
    
    .login-image {
        height: 280px;
        border-radius: 0;
        position: relative;
        margin-top: 15px;
    }
    
    .login-quote {
        padding-top: 20px;
        position: relative;
        z-index: 5;
    }
    
    .login-features {
        margin-top: 15px;
    }
    
    .google-btn, .kakao-btn {
        padding: 30px 16px;
        margin-bottom: 15px;
        border-radius: 10px;
        width: 100%;
        height: auto;
        min-height: 85px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .google-btn span, .kakao-btn span {
        font-size: 1.1rem;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
        padding-left: 15px;
    }
    
    .google-icon, .kakao-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .one-click-icon {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin-left: 10px;
    }
    
    .login-divider {
        margin: 20px 0;
        width: 100%;
    }
    
    .login-info {
        margin-top: 20px;
        width: 100%;
    }
    
    .login-info p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        word-break: keep-all;
    }
    
    .login-privacy {
        font-size: 0.8rem;
        word-break: keep-all;
    }
}

/* 중간 디바이스 (576px~767px) 최적화 */
@media (min-width: 577px) and (max-width: 767px) {
    .login-section {
        padding-top: 120px;
    }
    
    .login-image {
        height: 280px;
        margin-top: 12px;
    }
    
    .google-btn, .kakao-btn {
        min-height: 80px;
        padding: 18px 20px;
    }
}

/* 작은 디바이스 (376px~576px) 최적화 */
@media (min-width: 376px) and (max-width: 576px) {
    .login-section {
        padding-top: 110px;
    }
    
    .login-image {
        height: 260px;
        margin-top: 10px;
    }
    
    .google-btn, .kakao-btn {
        min-height: 75px;
        padding: 16px 16px;
    }
    
    .google-btn span, .kakao-btn span {
        font-size: 1.05rem;
    }
}

/* 매우 작은 디바이스 (320px~375px) 추가 최적화 */
@media (max-width: 375px) {
    .login-section {
        padding-top: 100px;
    }
    
    .login-image {
        height: 240px;
        margin-top: 8px;
    }
    
    .login-quote {
        padding-top: 15px;
    }
    
    .login-quote p {
        font-size: 1.35rem;
    }
    
    .google-btn, .kakao-btn {
        min-height: 70px;
        padding: 15px 16px;
    }
    
    .google-btn span, .kakao-btn span {
        font-size: 1rem;
        padding-left: 10px;
    }
    
    .google-icon, .kakao-icon {
        width: 24px;
        height: 24px;
    }
    
    .login-feature-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .login-privacy {
        font-size: 0.8rem;
        margin-top: 12px;
        padding: 0 5px;
    }
}

/* 모든 화면 크기에 공통 스타일 */
.login-container {
    overflow-y: auto;
    overflow-x: hidden;
}

/* 버튼 내 아이콘과 텍스트 정렬 조정 */
.google-btn, .kakao-btn {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-btn:active, .kakao-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 원클릭 배지 위치 조정 */
.one-click-icon {
    position: absolute;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

/* 약관 및 개인정보처리방침 모달 스타일 */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.legal-modal-content {
    background-color: #fff;
    margin: 5vh auto;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--gradient-primary);
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    -webkit-text-fill-color: white;
    background: none;
}

.close-legal-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-legal-modal:hover {
    transform: scale(1.1);
}

.legal-modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.legal-section {
    margin-bottom: 25px;
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.legal-section strong {
    font-weight: 600;
    color: #e74c3c;
}

.legal-section ol, .legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .login-section {
        padding: 0;
    }
    
    .login-container {
        padding: 0;
        margin: 0;
        height: auto;
        min-height: 100vh;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .login-card {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        height: auto;
        margin: 0;
        width: 100%;
    }
    
    .login-image {
        height: 180px;
        min-height: auto;
        border-radius: 0;
    }
    
    .login-content {
        padding: 20px 16px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .login-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
        word-break: keep-all;
    }
    
    .login-subtitle {
        font-size: 1rem;
        margin-bottom: 16px;
        text-align: center;
        width: 100%;
        word-break: keep-all;
    }
    
    .login-message {
        padding: 14px 16px;
        margin-bottom: 20px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .login-message p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .social-login {
        margin-top: 20px;
        width: 100%;
    }
    
    .google-btn, .kakao-btn {
        padding: 30px 20px;
        margin-bottom: 15px;
        border-radius: 10px;
        width: 100%;
        height: auto;
        min-height: 52px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .google-btn span, .kakao-btn span {
        font-size: 1rem;
        font-weight: 500;
        flex: 1;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
        padding-left: 10px;
    }
    
    .google-icon, .kakao-icon {
        width: 24px;
        height: 24px;
        margin-right: 0;
    }
    
    .one-click-icon {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin-left: 10px;
    }
    
    .login-divider {
        margin: 20px 0;
        width: 100%;
    }
    
    .login-info {
        margin-top: 20px;
        width: 100%;
    }
    
    .login-info p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        word-break: keep-all;
    }
    
    .login-privacy {
        font-size: 0.8rem;
        word-break: keep-all;
    }
}

/* 작은 디바이스 (376px~576px) 최적화 */
@media (min-width: 376px) and (max-width: 576px) {
    .google-btn, .kakao-btn {
        padding: 30px 18px;
        font-size: 0.95rem;
    }
    
    .login-content h2 {
        font-size: 1.4rem;
    }
}

/* 매우 작은 디바이스 (320px~375px) 추가 최적화 */
@media (max-width: 375px) {
    .login-content {
        padding: 16px 12px;
    }
    
    .login-content h2 {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-message p {
        font-size: 0.85rem;
    }
    
    /* 작은 화면에서도 버튼 크기 유지 */
    .google-btn, .kakao-btn {
        padding: 30px 14px;
        min-height: 48px;
    }
    
    .google-btn span, .kakao-btn span {
        font-size: 0.95rem;
        padding-left: 5px;
    }
    
    .google-icon, .kakao-icon {
        width: 20px;
        height: 20px;
    }
    
    .login-image {
        height: 180px;
    }
    
    .login-feature-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .login-privacy {
        font-size: 0.8rem;
        margin-top: 12px;
        padding: 0 5px;
    }
}

/* 모든 화면 크기에 공통 스타일 */
.login-container {
    overflow-y: auto;
    overflow-x: hidden;
}

/* 버튼 내 아이콘과 텍스트 정렬 조정 */
.google-btn, .kakao-btn {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

/* 원클릭 배지 위치 조정 */
.one-click-icon {
    position: absolute;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
} 