/*
File: login.css
Location: /fns_admin/css/
Purpose: Advanced login page styles with modern UI/UX design
*/

.login-body {
    margin: 0;
    padding: 0;
    background: var(--greenafrica-primary);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.login-left {
    flex: 1;
    background: var(--greenafrica-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.login-hero {
    text-align: center;
    max-width: 400px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.login-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.login-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
}

.login-right {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.login-logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-logo {
    width: 120px !important;
    height: 120px !important;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-group input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: var(--greenafrica-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 34, 96, 0.1);
}

.login-btn {
    background: var(--greenafrica-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 34, 96, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        padding: 2rem;
    }
    
    .login-hero h1 {
        font-size: 2rem;
    }
    
    .features {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .feature span {
        font-size: 0.8rem;
    }
    
    .login-right {
        padding: 2rem;
    }
}
