/* ===================================
   로그인 페이지 - 깔끔하고 모던한 디자인
   =================================== */

/* 페이지 전체 레이아웃 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 20px;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

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

/* ===================================
   왼쪽: 로그인 폼 섹션
   =================================== */
.login-form-section {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 로고 및 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
}

/* 구글 로그인 버튼 */
.google-login-btn {
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
}

.google-login-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.google-icon {
    width: 24px;
    height: 24px;
}

/* 안내 메시지 박스 */
.login-notice {
    background: #f8f9fa;
    border-left: 4px solid #4285f4;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* 로그인 필요 안내 (reason 표시) */
.login-required-notice {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.4s ease;
}

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

.login-required-notice .notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.login-required-notice .notice-message {
    font-size: 15px;
    font-weight: 600;
    color: #e65100;
    margin: 0;
    line-height: 1.5;
}

.notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    font-size: 14px;
    color: #4a5568;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.notice-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
}

/* 푸터 링크 */
.login-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 13px;
    color: #a0aec0;
}

/* ===================================
   반응형 디자인
   =================================== */
@media (max-width: 768px) {
    .login-page {
        padding: 0;
        align-items: flex-start;
    }

    .login-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .login-form-section {
        padding: 40px 24px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .footer-links {
        gap: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 32px 20px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .google-login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .login-notice {
        padding: 16px 20px;
    }

    .notice-title {
        font-size: 14px;
    }

    .notice-list li {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* iOS 안전 영역 대응 */
@supports (padding: max(0px)) {
    .login-page {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .login-form-section {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

/* 가로 모드 대응 (모바일) */
@media (max-height: 600px) and (orientation: landscape) {
    .login-page {
        align-items: flex-start;
        padding: 20px;
    }
    
    .login-container {
        margin: 0 auto;
    }
    
    .login-form-section {
        padding: 30px 24px;
    }
    
    .login-header {
        margin-bottom: 24px;
    }
}
