

        .gradient {
            background-color: #1666a8;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpolygon fill='%23145f9c' points='800 100 0 200 0 800 1600 800 1600 200'/%3E%3Cpolygon fill='%23135991' points='800 200 0 400 0 800 1600 800 1600 400'/%3E%3Cpolygon fill='%23125286' points='800 300 0 600 0 800 1600 800 1600 600'/%3E%3Cpolygon fill='%23124c7c' points='1600 800 800 400 0 800'/%3E%3Cpolygon fill='%23114672' points='1280 800 800 500 320 800'/%3E%3Cpolygon fill='%23114169' points='533.3 800 1066.7 800 800 600'/%3E%3Cpolygon fill='%23103b60' points='684.1 800 914.3 800 800 700'/%3E%3C/g%3E%3C/svg%3E");
            background-size: cover;
            background-attachment: fixed;
        }

        /* Clean Banking Login Form - Complete & Self-Contained */

        * {
            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, #f8fafc 0%, #e2e8f0 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            line-height: 1.6;
        }

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

        .login-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 40px 32px 32px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 1px solid #f1f5f9;
            position: relative;
            margin-top: -50px;
            animation: fadeIn 0.6s ease-out;
        }

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

        .logo {
            margin-bottom: 1px;
            display: flex;
            justify-content: center;
        }

        .login-header h1 {
            color: #1e293b;
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: -25px;
            letter-spacing: -0.025em;
        }

        .login-header p {
            color: #64748b;
            font-size: 15px;
            font-weight: 500;
            margin-bottom: -25px;
        }

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

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

        
        .form-group input {
            width: 100%;
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px 14px;
            color: #1e293b;
            font-size: 16px;
            font-weight: 400;
            outline: none;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .form-group input:focus {
        border-color: #1666a8;
        box-shadow: 0 0 0 3px rgba(22, 102, 168, 0.1);
        }

        .form-group input::placeholder {
            color: #94a3b8;
        }

        /* Password Field */
        .password-wrapper {
            position: relative;
        }

        .password-wrapper input {
            padding-right: 44px;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #64748b;
            padding: 6px;
            border-radius: 4px;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .password-toggle:hover {
        color: #1666a8;
        }

        .password-toggle svg {
            width: 22px;
            height: 22px;
            display: block;
        }

        .eye-closed {
            display: none;
        }

        .password-toggle.show-password .eye-open {
            display: none;
        }

        .password-toggle.show-password .eye-closed {
            display: block;
        }

        /* Form Options */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .form-options2 {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
        }

.form-options2 {
    justify-content: center;
    margin-top: 16px;
}

#recaptcha-fallback-container-login {
    display: none;
}

        .checkbox-wrapper {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 13px;
            color: #374151;
            font-weight: 500;
        }

        .checkbox-wrapper input[type="checkbox"] {
            display: none;
        }

        .checkmark {
            width: 16px;
            height: 16px;
            border: 1.5px solid #d1d5db;
            border-radius: 3px;
            margin-right: 8px;
            position: relative;
            transition: all 0.2s ease;
            background: #ffffff;
        }

        .checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
        background: #1666a8;
        border-color: #1666a8;
        }

        .checkmark::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 1px;
            width: 3px;
            height: 7px;
            border: solid white;
            border-width: 0 1.5px 1.5px 0;
            transform: rotate(45deg);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
            opacity: 1;
        }

        .forgot-link {
            color: #187bcb;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: color 0.2s ease;
        }

        .forgot-link:hover {
            color: #187bcb;
        }

        /* Login Button */
        .login-btn {
            width: 100%;
            background: #1666a8;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            cursor: pointer;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            position: relative;
            margin-bottom: 20px;
            transition: all 0.2s ease;
            overflow: hidden;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-btn:hover {
            background: #1876c3;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }

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

        .login-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-text {
            transition: opacity 0.2s ease;
        }

        .btn-loader {
            position: absolute;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

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

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

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

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

        .login-btn.is-loading .btn-loader {
            opacity: 1;
        }
        
        /* Security Notice */
        .security-notice {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            margin-bottom: 16px;
        }

        .security-notice span {
            color: #166534;
            font-size: 12px;
            font-weight: 500;
        }

        /* Error States */
        .error-message {
            color: #dc2626;
            font-size: 12px;
            font-weight: 500;
            margin-top: 0;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-2px);
            transition: all 0.2s ease;
        }

        .error-message.show {
            margin-top: 4px;
            max-height: 32px;
            opacity: 1;
            transform: translateY(0);
        }

        .form-group.error input {
            border-color: #dc2626;
            background: #fef2f2;
        }

        .form-group.error input:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

        /* Success Message */
        .success-message {
            display: none;
            text-align: center;
            padding: 32px 20px;
            opacity: 0;
            transform: translateY(16px);
            transition: all 0.3s ease;
        }

        .success-message.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .success-icon {
            margin: 0 auto 16px;
            animation: successScale 0.5s ease-out;
        }

        @keyframes successScale {
            0% { transform: scale(0); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .success-message h3 {
            color: #1e293b;
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .success-message p {
            color: #64748b;
            font-size: 14px;
            font-weight: 500;
        }

        /* Mobile Responsive */
        @media (max-width: 480px) {
        html,
        body {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        body.gradient {
            background-image: none !important;
            background-color: #1666a8 !important;
            background-attachment: scroll;
            background-size: auto;
        }

        body {
            min-height: 100dvh;
            height: 100dvh;
            padding: 20px;
        }

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

        .login-card {
            padding: 40px 32px 32px;
            border-radius: 24px;
            margin-top: -100px;
        }

        .login-header h1 { font-size: 1.75rem; }

        /* ✅ manter checkbox e "Redefinir senha" lado a lado */
        .form-options {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .forgot-link { white-space: nowrap; }

        .security-notice {
            flex-direction: column;
            text-align: center;
            gap: 6px;
        }
        }

        #logoimg {
            width: 130px;
            height: auto;
        } 
        
        .flash{
            margin: 12px 0 16px;
            padding: 12px 14px;
            border-radius: 12px;
            text-align: center;
            font-size: 14px;
            line-height: 1.35;

            background: #fff5f5;
            color: #8a1f1f;
            border: 1px solid #ffd6d6;
            border-left: 6px solid #ff6b6b;

            box-shadow: 0 8px 18px rgba(0,0,0,.06);
        }     

        .flash.success{
            background: #f1fff6;
            color: #14532d;
            border: 1px solid #bbf7d0;
            border-left: 6px solid #22c55e;
        }

        @media (max-width: 420px) {
        .flash {
            font-size: 13px;
            padding: 10px;}
        }

        @media (max-width: 450px) {
        .flash {
            font-size: 13px;
            padding: 10px;}
        }
