* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Card - medium size */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 28px 24px;
    text-align: center;
    color: white;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.logo-icon i {
    font-size: 28px;
    color: white;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.card-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* Body */
.card-body {
    padding: 28px 24px;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.form-label i {
    margin-right: 8px;
    color: #667eea;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    z-index: 1;
}

/* SVG Icons (replaces Font Awesome) */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-logo {
    width: 28px;
    height: 28px;
}

.icon-input {
    width: 14px;
    height: 14px;
}

.icon-toggle {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.icon-btn {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.icon-alert {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.form-label .icon {
    margin-right: 8px;
    color: #667eea;
}

.icon-spin {
    animation: icon-spin 0.8s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-control {
    width: 100%;
    padding: 10px 15px 10px 42px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
    background: transparent;
    border: none;
    z-index: 1;
    padding: 0;
}

.password-toggle:hover {
    color: #667eea;
}

/* Checkbox and Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.login-btn i {
    margin-right: 8px;
}

/* Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 12px;
}

/* Demo Box */
.demo-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.demo-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-title i {
    margin-right: 5px;
}

.demo-credential {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.demo-credential strong {
    color: #667eea;
}

/* Alert */
.alert {
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
}

/* Loading State */
.login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .card-body {
        padding: 24px 20px;
    }
    
    .card-header {
        padding: 22px 20px;
    }
    
    .card-header h2 {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
}