body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* Login Card Styles */
.login-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Logo Section */
.logo-section {
    margin-bottom: 2.5rem;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c5530;
    margin: 0.5rem 0 0 0;
    letter-spacing: 3px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.3rem 0 0 0;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Form Styles */
.login-form {
    text-align: left;
}

.form-label {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input Container */
.input-container {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 2;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 100%;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
    background-color: white;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Password Input Container */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .btn {
    position: relative;
    z-index: 2;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #e0e0e0;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    color: #28a745;
    background-color: #f8f9fa;
    border-color: #28a745;
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
    outline: none;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: #28a745;
}

.password-toggle-btn:focus {
    outline: none;
}

/* Sign In Button */
.btn-signin {
    background: #28a745;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn-signin:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-signin:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
    outline: none;
}

.btn-signin:active {
    transform: translateY(0);
}

/* Error Message */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: calc(100% - 2rem);
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-signin {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* Animation Effects */
.login-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-signin.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-signin.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
