/* Modern Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

/* Left Side - Login Form */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

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

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-height: 50px;
    width: auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Form Styles */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-input:focus + .input-icon {
    color: #3182ce;
}

.input-wrapper.focused .input-icon {
    color: #3182ce;
}

.input-wrapper.error .form-input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.input-wrapper.error .input-icon {
    color: #e53e3e;
}

.error-message {
    display: block;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Captcha Styles */
.captcha-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.captcha-image-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #3182ce;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.captcha-refresh:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}

.captcha-input {
    flex: 1;
    padding-left: 16px;
}

/* Login Button */
.login-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

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

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(49, 130, 206, 0.4);
}

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

.btn-text {
    font-weight: 600;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
}

.forgot-link {
    color: #3182ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Right Side - Background & Notices */
.login-background-section {
    flex: 1;
    position: relative;
    background: #2d3748;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.85) 0%, rgba(26, 32, 44, 0.95) 100%);
    z-index: 2;
}

/* Notices Container */
.notices-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    color: #ffffff;
}

.notices-header {
    text-align: center;
    margin-bottom: 40px;
}

.notices-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notices-title i {
    font-size: 20px;
    color: #63b3ed;
}

.notices-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.notice-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.notice-description {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 0;
}

.read-more {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #90cdf4;
    text-decoration: underline;
}

/* Desktop Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3182ce;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.read-more-btn:hover {
    background: #2b6cb0;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

.read-more-btn i {
    font-size: 12px;
}

/* Custom Scrollbar */
.notices-content::-webkit-scrollbar {
    width: 6px;
}

.notices-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notices-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.notices-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-wrapper {
        max-width: 900px;
    }
    
    .login-form-section {
        padding: 50px 40px;
    }
    
    .notices-container {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .login-form-section {
        padding: 40px 30px;
        order: 2;
    }
    
    .login-background-section {
        order: 1;
        min-height: 300px;
        display: none;
    }
    
    .notices-container {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .form-input {
        height: 52px;
    }
    
    .login-btn {
        height: 52px;
    }
    
    /* Show mobile news section */
    .mobile-news-section {
        display: block;
    }
    
    /* Hide desktop notices */
    .notices-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-form-section {
        padding: 30px 20px;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .captcha-image-container {
        justify-content: center;
    }
    
    .captcha-input {
        padding-left: 16px;
    }
}

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

.login-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.notices-container {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Focus States for Accessibility */
.form-input:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.login-btn:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Desktop: Always hide mobile news section */
@media (min-width: 769px) {
    .mobile-news-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile News Section Styles */
.mobile-news-header {
    text-align: center;
    margin-bottom: 20px;
    color: #2d3748;
}

.mobile-news-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-news-title i {
    font-size: 16px;
    color: #3182ce;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-dot.active {
    background: #3182ce;
    transform: scale(1.2);
}

.mobile-news-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
}

.mobile-news-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-news-item {
    flex: 0 0 280px !important;
    flex-shrink: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: all 0.2s ease;
    min-width: 280px;
    max-width: 280px;
    display: block !important;
}

.mobile-news-item:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

.mobile-news-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: normal;
}

.mobile-news-item-description {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: normal;
}

.mobile-news-item-link {
    color: #3182ce;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.mobile-news-item-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Mobile: Show mobile news section and hide desktop news */
@media (max-width: 768px) {
    .mobile-news-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 24px !important;
        padding: 24px !important;
    }
    
    .mobile-news-scroll {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    .mobile-news-item {
        display: block !important;
        float: none !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
        flex-shrink: 0 !important;
    }
    
    /* Hide desktop notices on mobile */
    .notices-container {
        display: none !important;
    }
    
    /* Hide background section on mobile */
    .login-background-section {
        display: none !important;
    }
}

