/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4e8 0%, #d4ead4 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #006432;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 100, 50, 0.1), 
                0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(0, 100, 50, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #006432, #00632f, #228B22);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 100, 50, 0.15), 
                0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header-section {
    margin-bottom: 2.5rem;
    animation: slideInDown 1s ease-out;
}

.logo {
    margin-bottom: 1.5rem;
}

.ssg-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 100, 50, 0.3);
    transition: transform 0.3s ease;
    border: 3px solid rgba(0, 100, 50, 0.1);
}

.ssg-logo:hover {
    transform: scale(1.05);
}

.institution-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006432;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.organization {
    color: #228B22;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    animation: slideInUp 1s ease-out 0.3s both;
}

.system-info {
    margin-bottom: 2.5rem;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #006432;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    color: #228B22;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.description {
    margin-bottom: 2rem;
}

.description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2e7d32;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    margin-bottom: 1.5rem;
}

.login-btn {
    background: linear-gradient(135deg, #006432, #228B22);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 100, 50, 0.3);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, #004d26, #006432);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 100, 50, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 100, 50, 0.3);
}

.btn-text {
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.login-btn:hover .btn-icon {
    transform: translateX(3px);
}

.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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-hint {
    color: #228B22;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Footer */
.footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 100, 50, 0.1);
}

.footer p {
    color: #228B22;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 2.5rem 2rem;
        max-width: 420px;
    }
    
    .ssg-logo {
        width: 80px;
        height: 80px;
    }
    
    .institution-name {
        font-size: 1.3rem;
    }
    
    .organization {
        font-size: 0.9rem;
    }
    
    .title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description p {
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .ssg-logo {
        width: 70px;
        height: 70px;
    }
    
    .institution-name {
        font-size: 1.2rem;
    }
    
    .organization {
        font-size: 0.85rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .description p {
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .login-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .container:hover {
        transform: none;
    }
    
    .ssg-logo:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .container {
        background: white;
        border: 2px solid #006432;
    }
    
    .login-btn {
        border: 2px solid #006432;
    }
    
    .login-btn:hover {
        background: #006432;
        color: white;
    }
}