/* Bank-style Login Page matching provided screenshot */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0b0f1a;
    background: #f3f4f6;
}

/* Spinner Styles */
.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Button with spinner */
.btn-primary {
    position: relative;
    transition: all 0.3s ease;
}

.btn-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-primary .btn-icon,
.btn-primary .btn-text {
    transition: all 0.3s ease;
}

.btn-primary:disabled .btn-icon {
    display: none !important;
}

.btn-primary:disabled .btn-text {
    opacity: 0.8;
}

/* Professional Error Message Styles */
.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    animation: slideIn 0.3s ease-out;
}

.error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ef4444;
    margin-top: 2px;
}

.error-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.error-content {
    flex: 1;
    min-width: 0;
}

.error-title {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 4px;
    line-height: 1.4;
}

.error-text {
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
    word-wrap: break-word;
}

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

/* Success Message Styles (for future use) */
.success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    animation: slideIn 0.3s ease-out;
}

.success-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #22c55e;
    margin-top: 2px;
}

.success-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.success-content {
    flex: 1;
    min-width: 0;
}

.success-title {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.success-text {
    font-size: 13px;
    color: #15803d;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Mobile Responsive Error Messages */
@media (max-width: 768px) {
    .error-message {
        padding: 14px 16px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .error-title {
        font-size: 13px;
    }
    
    .error-text {
        font-size: 12px;
    }
    
    .success-message {
        padding: 14px 16px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .success-title {
        font-size: 13px;
    }
    
    .success-text {
        font-size: 12px;
    }
}

.page {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 100vh;
}

/* Left media panel */
.media {
    position: relative;
    overflow: hidden;
}
.media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right auth panel */
.auth {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.auth-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 32px 0 32px;
}
.lang-link {
    color: #0b5ed7;
    text-decoration: none;
    font-weight: 500;
}
.lang-link:hover { text-decoration: underline; }

.auth-body {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px 40px 32px;
}

.bank-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}
.bank-brand img { height: 70px; width: auto; }
.bank-brand .name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .3px;
}

.headline {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    margin: 10px 0 28px 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field label {
    display: block;
    font-size: 14px;
    color: #293041;
    margin-bottom: 8px;
}

.control {
    position: relative;
}
.input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1px solid #000000;
    font-size: 16px;
    color: #0b0f1a;
    outline: none;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}
.input::placeholder { color: #9aa4b2; }
.input:focus {
    border-color: #7aa5f8;
    box-shadow: 0 0 0 4px rgba(62,123,247,.15);
}

.trailing-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #6b7280;
}
.trailing-btn:hover { color: #111827; }

.row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.link { color: #0b5ed7; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: #1f2937;
}
.remember input { width: 18px; height: 18px; }
.remember .info {
    display: inline-block;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1px solid #cfd6e4;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    color: #6b7280;
}

.actions { margin-top: 18px; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #D09B33;
    color: #fff;
    border: none;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(208,155,51,.25);
    transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { background: #B8852A; box-shadow: 0 8px 20px rgba(208,155,51,.35); }
.btn-primary:active { transform: translateY(1px); }

.btn-primary .lock {
    width: 22px; height: 22px; display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
    .page { grid-template-columns: 1fr; }
    .media { display: none; }
    .auth-body { padding: 32px 24px 40px 24px; }
}


