/*
 * MiONE 로그인 페이지 스타일
 * 녹색 계열 모던 마케팅 플랫폼 디자인
 */

/* 로그인 페이지 전용 body 스타일 */
.login-page {
    background-color: #0a1f0d;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 상단 네비게이션 */
.login-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 31, 13, 0.95) 0%, transparent 100%);
}

.login-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-nav .nav-link:hover {
    color: #81C784;
}

.login-nav .nav-icon {
    font-size: 16px;
}

.login-nav .register-link {
    padding: 10px 24px;
    border: 1px solid rgba(129, 199, 132, 0.4);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-nav .register-link:hover {
    background: rgba(129, 199, 132, 0.15);
    border-color: rgba(129, 199, 132, 0.7);
    color: #A5D6A7;
}

/* 메인 컨테이너 */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* 왼쪽 히어로 영역 */
.login-hero {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, #0a2e14 0%, #1B5E20 50%, #2E7D32 100%);
    overflow: hidden;
}

/* 배경 이미지 사용 시 */
.login-hero.with-bg {
    background-image: url('../../images/login-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* 오버레이 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.9) 0%, rgba(46, 125, 50, 0.85) 100%);
}

.login-hero.with-bg .hero-overlay {
    background: linear-gradient(135deg, rgba(10, 31, 13, 0.92) 0%, rgba(27, 94, 32, 0.88) 100%);
}

/* 배경 장식 요소 */
.login-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

.login-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 199, 132, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* 추가 장식 - 떠다니는 원 */
.hero-content::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

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

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

/* 히어로 콘텐츠 */
.hero-content {
    position: relative;
    z-index: 10;
    color: #ffffff;
    max-width: 500px;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    max-width: 300px;
    width: 300px;
    height: auto;
    aspect-ratio: 606 / 247;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(200, 230, 201, 0.9);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(129, 199, 132, 0.3);
}

.hero-description {
    margin-bottom: 50px;
}

.hero-description p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.hero-description p:first-child {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

/* 기능 목록 */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 오른쪽 로그인 폼 영역 */
.login-form-section {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
    position: relative;
}

/* 폼 영역 좌측 장식 라인 */
.login-form-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, #4CAF50 30%, #81C784 50%, #4CAF50 70%, transparent 100%);
    border-radius: 2px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    margin-bottom: 40px;
}

.login-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 10px;
}

.login-form-header p {
    font-size: 15px;
    color: #64748b;
}

/* 폼 스타일 */
.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.login-form .form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.login-form .form-group input::placeholder {
    color: #94a3b8;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46, 125, 50, 0.4);
}

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

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

/* 푸터 */
.login-footer {
    margin-top: 50px;
    text-align: center;
}

.login-footer p {
    font-size: 13px;
    color: #94a3b8;
}

/* 알림 메시지 */
.login-form-wrapper .alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
}

.login-form-wrapper .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.login-form-wrapper .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* 반응형 */
@media (max-width: 1024px) {
    .login-hero {
        flex: 1;
        padding: 40px;
    }

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

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-nav {
        padding: 15px 20px;
    }

    .login-hero {
        min-height: 50vh;
        padding: 80px 30px 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .hero-description {
        margin-bottom: 30px;
    }

    .hero-description p {
        font-size: 14px;
    }

    .hero-description p:first-child {
        font-size: 17px;
    }

    .hero-features {
        gap: 12px;
    }

    .feature-item {
        font-size: 14px;
    }

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

    .login-form-section::before {
        display: none;
    }

    .login-form-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-nav {
        padding: 12px 16px;
    }

    .login-nav .nav-link {
        font-size: 13px;
    }

    .login-nav .register-link {
        padding: 8px 16px;
    }

    .login-hero {
        padding: 70px 20px 40px;
    }

    .hero-title {
        font-size: 28px;
    }

    .login-form-section {
        padding: 30px 20px 50px;
    }

    .login-form .form-group input {
        padding: 14px 16px;
    }

    .btn-login {
        padding: 14px 20px;
    }
}
