/* Goldenfish login page */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.login-page-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #393960;
}

.login-fintech-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a48 0%, #393960 45%, #7a2e0a 100%);
}

.login-fintech-bg-media {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.login-page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-card-logo {
    padding: 24px 28px 12px;
    text-align: center;
    background: #fff;
}

.login-card-logo img,
.login-card-logo .aspNetDisabled img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-card-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1a365d;
    padding: 0 24px 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.login-field-otp .login-otp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.login-field-otp .login-otp-label-row label {
    margin-bottom: 0;
}

.login-otp-timer {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #e85d04;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.login-otp-timer.expired {
    color: #c53030;
}

.login-step-hint {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.login-field-mpin label {
    margin-bottom: 4px;
}

.login-otp-resend-row {
    margin-top: 10px;
    text-align: right;
}

.btn-login-resend-otp {
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    color: #a0aec0 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-login-resend-otp:not(.is-disabled):not(:disabled) {
    background: linear-gradient(135deg, #393960 0%, #2d2d4a 100%);
    border: 1px solid #e85d04;
    color: #ffe066 !important;
    box-shadow: 0 2px 8px rgba(57, 57, 96, 0.28);
}

.btn-login-resend-otp:hover:not(.is-disabled):not(:disabled) {
    background: linear-gradient(135deg, #e85d04 0%, #dc2f02 100%);
    border-color: #dc2f02;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
}

.btn-login-resend-otp.is-disabled,
.btn-login-resend-otp:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #a0aec0 !important;
    box-shadow: none;
}

.login-resend-msg {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #276749 !important;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 10px 12px;
}

.login-field .form-control {
    height: 44px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field .form-control:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
    outline: none;
}

.login-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.login-actions .btn-login-primary {
    flex: 1 1 140px;
    min-height: 44px;
    background: linear-gradient(135deg, #e85d04 0%, #dc2f02 100%);
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.login-actions .btn-login-primary:hover {
    opacity: 0.92;
    color: #fff !important;
}

.login-actions .btn-forgot {
    flex: 1 1 140px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #393960 0%, #2d2d4a 100%);
    border: 1px solid rgba(255, 224, 102, 0.28);
    border-radius: 6px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(57, 57, 96, 0.35);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.login-actions .btn-forgot:hover,
.login-actions .btn-forgot:focus {
    background: linear-gradient(135deg, #4a4a78 0%, #393960 100%);
    border-color: #ffe066;
    color: #ffe066 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(57, 57, 96, 0.45);
    text-decoration: none !important;
}

.login-error {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}

.login-logout-msg {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #276749 !important;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 10px 12px;
}

.login-contact {
    background: #1a365d;
    color: #fff;
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.login-contact strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
}

.login-contact a {
    color: #90cdf4;
    text-decoration: none;
}

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

.login-page-footer {
    margin-top: 12px;
    padding: 6px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.login-page-footer .footer-terms-link {
    display: inline-block;
    margin-left: 2px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
    background: #2b6cb0;
    border: 1px solid #4299e1;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
}

.login-page-footer .footer-terms-link:hover,
.login-page-footer .footer-terms-link:focus {
    background: #3182ce;
    text-decoration: none !important;
}

/* Forgot password page */
body.page-forgot-password .login-card-subtitle {
    text-align: center;
    margin: 0;
    padding: 0 24px 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

body.page-forgot-password .login-actions-forgot {
    margin-top: 4px;
}

body.page-forgot-password .login-message {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    min-height: 0;
}

body.page-forgot-password .login-message.login-success {
    color: #276749;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 10px 12px;
}

body.page-forgot-password .login-message.login-error {
    color: #c53030;
}

@media (max-width: 480px) {
    .login-card-body {
        padding: 20px 18px 16px;
    }

    .login-actions {
        flex-direction: column;
    }

    .login-actions .btn-login-primary,
    .login-actions .btn-forgot {
        flex: 1 1 100%;
        width: 100%;
    }
}
