/* ==========================================
   프리미엄 로그인 화면 디자인
   ========================================== */

/* 로그인 박스 - 프리미엄 디자인 */
.login-box-modern {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 30, 45, 0.95) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-box-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.04) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* 로그인 헤더 */
.login-header-modern {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* CNOL 텍스트 로고 */
.logo-text-modern {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
    margin: 0 auto 1.5rem;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #4285F4 0%, #EA4335 25%, #FBBC05 50%, #34A853 75%, #4285F4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes logoGlow {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.1);
        transform: scale(1.02);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 25px rgba(102, 126, 234, 0.25);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

/* 브랜드 타이틀 */
.brand-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
}

.brand-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 서브타이틀 */
.subtitle-modern {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin: 0;
}

/* 로그인 폼 */
.login-form-modern {
    position: relative;
    z-index: 1;
}

/* 폼 그룹 */
.form-group-modern {
    margin-bottom: 1.75rem;
}

/* 라벨 */
.input-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.input-label-modern i {
    color: #667eea;
    font-size: 1rem;
}

/* 입력 필드 */
.input-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-modern::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-modern:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 2px 10px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* 비밀번호 입력 */
.password-input-modern {
    position: relative;
}

.password-input-modern .input-modern {
    padding-right: 3.5rem;
}

.password-input-modern .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.password-input-modern .toggle-password:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

/* 로그인 버튼 */
.login-btn-modern {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.login-btn-modern:hover::before {
    left: 100%;
}

.login-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.login-btn-modern i {
    margin-right: 0.5rem;
}

/* 구분선 */
.divider-modern {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    position: relative;
}

.divider-modern::before,
.divider-modern::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider-modern span {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 구글 로그인 버튼 */
.google-login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #3c4043;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Sans KR', sans-serif;
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

.google-icon {
    flex-shrink: 0;
}

.google-login-btn span {
    font-size: 0.95rem;
}

/* 로그인 푸터 개선 */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.login-footer a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-box-modern {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }

    .logo-modern {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .subtitle-modern {
        font-size: 0.95rem;
    }

    .input-modern {
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    .login-btn-modern {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-box-modern {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}

/* 접근성 개선 */
.input-modern:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.login-btn-modern:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}
