/* ========================================
   DIMS Admin - Login Page Styles
   ======================================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

* {
    box-sizing: border-box;
}

.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

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

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 40px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.login-header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    position: relative;
}

.login-header i {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    position: relative;
}

.login-body {
    padding: 40px;
}

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

.login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.login-form .input-group {
    position: relative;
}

.login-form .input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    z-index: 10;
}

.login-form .input-group .form-control {
    padding-left: 44px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

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

.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.btn-login.loading .spinner {
    display: inline-block;
}

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

.login-form .form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-form .form-check-input {
    margin-right: 8px;
}

.login-form .form-check-label {
    font-size: 13px;
    color: #64748b;
}

.login-form .forgot-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.login-form .forgot-link:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    padding: 0 40px 30px;
    color: #64748b;
    font-size: 13px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Decorative circles */
.login-header .decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.login-header .decoration-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -100px;
}

.login-header .decoration-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: -80px;
    left: -80px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-header {
        padding: 30px 30px 40px;
    }
    
    .login-body {
        padding: 30px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
}