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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f4f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 900px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 24px;
}

.login-logos .partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.login-logos .main-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
}

.login-title h1 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.login-logo ion-icon {
    font-size: 48px;
    color: #3b82f6;
}

.login-logo h1 {
    font-size: 28px;
    color: #1e293b;
    margin: 0;
}

.login-logo span {
    color: #3b82f6;
    font-size: 14px;
}

.login-tagline {
    color: #64748b;
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }
}

.login-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card-header {
    padding: 24px;
    color: white;
}

.login-card-header.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.login-card-header.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.login-card-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.login-card-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-card-body {
    padding: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-outline {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-dark {
    background: #1e293b;
    color: white;
}

/* Demo Accounts */
.demo-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.demo-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-account-info ion-icon {
    font-size: 24px;
}

.demo-account-info ion-icon.blue { color: #3b82f6; }
.demo-account-info ion-icon.purple { color: #8b5cf6; }
.demo-account-info ion-icon.orange { color: #f59e0b; }

.demo-account-info strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
}

.demo-account-info span {
    font-size: 13px;
    color: #64748b;
}

.demo-password {
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
}

.demo-password code {
    color: #3b82f6;
    font-weight: 600;
}

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

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
