/*
 * login.css
 * Page-specific styles for account/login.php
 * Extracted from the inline <style> block in the page markup.
 */

        /* ===== FIXED CENTERING FOR SMALL DEVICES ===== */
        body {
            background: #1b2e2a;
        }
        
        /* Force proper centering on all screen sizes */
        .main-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            width: 100%;
            padding: 20px;
        }
        
        .main-content {
            width: 100%;
            display: flex;
            justify-content: center;
        }
        
        .row {
            width: 100%;
            display: flex;
            justify-content: center;
            margin: 0;
        }
        
        .col-sm-10 {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
            float: none;
        }
        
        /* Override Ace's default positioning */
        .login-container {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
            float: none;
        }
        
        /* Login method tabs */
        .login-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #e3e3e3;
        }
        
        .login-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            background: transparent;
            border: none;
            border-bottom: 2px solid transparent;
            font-size: 14px;
            font-weight: 500;
            color: #888;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .login-tab i {
            margin-right: 8px;
        }
        
        .login-tab.active {
            color: #2a7be4;
            border-bottom-color: #2a7be4;
        }
        
        .login-tab:hover:not(.active) {
            color: #555;
        }
        
        .login-panel {
            display: none;
        }
        
        .login-panel.active-panel {
            display: block;
        }
        
        /* Phone input group */
        .phone-input-group {
            display: flex;
            gap: 10px;
        }
        
        .phone-input-group .form-control {
            flex: 1;
        }
        
        .send-otp-btn {
            background: #2a7be4;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0 15px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s ease;
        }
        
        .send-otp-btn:hover:not(:disabled) {
            background: #1e68c4;
        }
        
        .send-otp-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .otp-section {
            margin-top: 15px;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .timer-text {
            font-size: 12px;
            color: #888;
            margin-top: 8px;
            text-align: center;
        }
        
        /* For small devices */
        @media (max-width: 768px) {
            .main-container {
                padding: 15px;
            }
            
            .col-sm-10 {
                padding: 0;
            }
            
            .login-container {
                width: 100%;
            }
            
            .widget-box {
                margin: 0;
            }
        }
        
        @media (max-width: 480px) {
            .main-container {
                padding: 10px;
            }
            
            .widget-main {
                padding: 20px 15px !important;
            }
            
            .logo-wrapper {
                margin: 10px 0 20px 0 !important;
            }
            
            .main-logo {
                max-width: 80px !important;
            }
            
            h4.blue {
                font-size: 14px;
            }
            
            .header {
                font-size: 18px !important;
            }
            
            .clearfix .pull-right {
                float: none !important;
                width: 100% !important;
                margin-top: 10px;
            }
            
            .clearfix .inline {
                display: block;
                margin-bottom: 10px;
            }
            
            .toolbar .pull-right {
                float: none !important;
            }
            
            .phone-input-group {
                flex-direction: column;
            }
            
            .send-otp-btn {
                padding: 8px;
            }
        }
        
        @media (max-width: 375px) {
            .login-container {
                padding: 0;
            }
            
            .widget-body {
                padding: 0;
            }
            
            .widget-main {
                padding: 15px;
            }
            
            .header {
                font-size: 16px;
                text-align: center;
            }
            
            .toolbar {
                text-align: center;
            }
            
            .toolbar > div {
                float: none !important;
                text-align: center;
            }
        }
        
        @media (max-width: 768px) and (orientation: landscape) {
            .main-container {
                padding: 10px;
            }
            
            .logo-wrapper {
                margin: 5px 0 15px 0;
            }
            
            .main-logo {
                max-width: 60px;
            }
        }
        
        html, body {
            overflow-x: hidden;
            position: relative;
        }

        /* logo css */
        .logo-wrapper {
            text-align: center;
            margin: 20px 0 30px 0;
        }

        .main-logo {
            max-width: 100px;
            height: auto;
            display: inline-block;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .main-logo:hover {
            opacity: 0.95;
            transition: opacity 0.3s ease;
        }
        
        /* Form validation states */
        .is-invalid {
            border-color: #dc3545 !important;
        }
        
        .is-invalid:focus {
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
        }
        
        .invalid-feedback {
            display: none;
            width: 100%;
            margin-top: 0.25rem;
            font-size: 80%;
            color: #dc3545;
        }
        
        .is-invalid ~ .invalid-feedback {
            display: block;
        }
        
        /* Toastr customization */
        .toast-success {
            background-color: #2A7BE4 !important;
        }
        
        .toast-error {
            background-color: #dc3545 !important;
        }
        
        .toast-warning {
            background-color: #f0ad4e !important;
        }
        
        /* Loading spinner */
        .spinner-border-sm {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 0.15em solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border .75s linear infinite;
            margin-right: 0.5rem;
            vertical-align: middle;
        }
        
        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }
        
        /* Disabled button state */
        .btn-primary:disabled, .btn-success:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }
        
        /* Password field with lock + eye icons */
        .input-icon.has-toggle > input.form-control {
            padding-right: 60px;
        }

        /* Keep the built-in Ace lock icon at the edge */
        .input-icon.has-toggle > .ace-icon {
            left: auto;
            right: 5px;
        }

        /* Eye visibility toggle sits before the lock */
        .password-toggle {
            position: absolute;
            right: 32px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 28px;
            padding: 0;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            background: none;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            color: #9aa0a6;
            z-index: 10;
            transition: color 0.2s ease, background-color 0.2s ease;
        }

        .password-toggle:hover,
        .password-toggle:focus-visible {
            color: #438eb9;
            background: rgba(67, 142, 185, 0.08);
            outline: none;
        }

        .password-toggle i {
            font-size: 15px;
        }

        .input-icon-right {
            position: relative;
        }
        
        /* Verify button always visible */
        .verify-btn-container {
            margin-top: 15px;
        }
        
        .info-note {
            font-size: 11px;
            color: #888;
            margin-top: 5px;
            text-align: center;
        }

        /* Register link as visible button */
        .register-link {
            display: inline-block;
            padding: 6px 14px;
            background: #2a7be4;
            color: #fff !important;
            border-radius: 4px;
            font-weight: 600;
            font-size: 13px;
            text-decoration: none !important;
            transition: background 0.2s;
        }
        .register-link:hover {
            background: #1e68c4;
            color: #fff !important;
        }
        .register-link i {
            margin-right: 4px;
        }
