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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .login-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.06);
            width: 100%;
            max-width: 420px;
            padding: 32px 24px;
            position: relative;
            animation: float 6s ease-in-out infinite;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .login-container:hover {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        /* Mobile First Responsive Design */
        @media (max-width: 480px) {
            body {
                padding: 12px;
            }
            
            .login-container {
                padding: 24px 20px;
                border-radius: 8px;
                min-height: calc(100vh - 24px);
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
        }

        /* Small phones (320px and up) */
        @media (max-width: 320px) {
            .login-container {
                padding: 20px 16px;
            }
        }

        
        @media only screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
            body { padding: 8px; }
            .login-container {
                max-width: 350px;
                padding: 24px 20px;
                border-radius: 8px;
            }
        }

        @media only screen and (device-width: 414px) and (device-height: 846px) {
            body { padding: 16px 8px; }
            .login-container {
                max-width: 380px;
                padding: 28px 24px;
            }
        }

        @media only screen and (device-width: 344px) and (device-height: 882px) {
            body { padding: 12px 6px; }
            .login-container {
                max-width: 320px;
                padding: 20px 16px;
                border-radius: 16px;
            }
        }

        @media only screen and (device-width: 673px) and (device-height: 841px) {
            .login-container {
                max-width: 450px;
                padding: 40px 36px;
            }
        }

        /* Tablets */
        @media (min-width: 768px) and (max-width: 1024px) {
            .login-container {
                max-width: 480px;
                padding: 48px 40px;
            }
        }

        /* Desktop */
        @media (min-width: 1024px) {
            .login-container {
                max-width: 500px;
                padding: 56px 48px;
            }
        }

        /* Large screens */
        @media (min-width: 1440px) {
            .login-container {
                max-width: 520px;
            }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
        }

        .logo-section {
            text-align: center;
            margin-bottom: 32px;
        }

        .logo {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #a67c5a, #8b6f47);
            border-radius: 12px;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
            font-weight: bold;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .logo::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            animation: logoShine 3s ease-in-out infinite;
        }

        .logo:hover {
            transform: scale(1.05) rotate(5deg);
        }

        @keyframes logoShine {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }

        .login-title {
            font-size: 22px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .login-subtitle {
            color: #666;
            font-size: 14px;
            line-height: 1.4;
        }

        /* Mobile adjustments for logo section */
        @media (max-width: 480px) {
            .logo-section {
                margin-bottom: 28px;
            }
            
            .logo {
                width: 48px;
                height: 48px;
                font-size: 20px;
            }
            
            .login-title {
                font-size: 20px;
            }
            
            .login-subtitle {
                font-size: 13px;
            }
        }

        @media (min-width: 768px) {
            .logo-section {
                margin-bottom: 40px;
            }
            
            .logo {
                width: 64px;
                height: 64px;
                font-size: 26px;
            }
            
            .login-title {
                font-size: 26px;
            }
            
            .login-subtitle {
                font-size: 15px;
            }
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-appearance: none;
            appearance: none;
            background: white;
        }

        .form-input:focus {
            outline: none;
            border-color: #a67c5a;
            box-shadow: 0 0 0 3px rgba(166, 124, 90, 0.1);
            transform: translateY(-1px);
        }

        .form-input::placeholder {
            color: #999;
            transition: opacity 0.3s;
        }

        .form-input:focus::placeholder {
            opacity: 0.7;
        }

        @media (max-width: 480px) {
            .form-group { margin-bottom: 18px; }
            .form-input {
                padding: 12px 14px;
                font-size: 16px;
                border-radius: 6px;
            }
        }

        @media (min-width: 768px) {
            .form-input {
                padding: 16px 18px;
                font-size: 15px;
            }
        }

        .btn {
            width: 100%;
            padding: 14px 20px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-appearance: none;
            appearance: none;
            touch-action: manipulation;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background-color: #a67c5a;
            color: white;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            background-color: #8b6f47;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(166, 124, 90, 0.3);
        }

        .btn-primary:active {
            transform: translateY(0);
            background-color: #7a5f3f;
        }

        .btn-primary:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        @media (max-width: 480px) {
            .btn {
                padding: 16px 20px;
                font-size: 16px;
                border-radius: 10px;
            }
        }

        @media (min-width: 768px) {
            .btn {
                padding: 15px 24px;
                font-size: 15px;
            }
        }

        .step-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
        }

        .step {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin: 0 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .step.active {
            background-color: #a67c5a;
            color: white;
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(166, 124, 90, 0.3);
        }

        .step.inactive {
            background-color: #eee;
            color: #999;
        }

        .step-line {
            width: 40px;
            height: 2px;
            background-color: #eee;
            transition: all 0.3s;
        }

        .step-line.active {
            background-color: #a67c5a;
        }

        @media (max-width: 480px) {
            .step-indicator { margin-bottom: 24px; }
            .step {
                width: 28px;
                height: 28px;
                font-size: 11px;
                margin: 0 6px;
            }
            .step-line { width: 30px; }
        }

        .otp-inputs {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin: 20px 0;
        }

        .otp-input {
            width: 50px;
            height: 50px;
            text-align: center;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .otp-input:focus {
            border-color: #a67c5a;
            outline: none;
            box-shadow: 0 0 0 3px rgba(166, 124, 90, 0.1);
            transform: translateY(-2px);
        }

        @media (max-width: 480px) {
            .otp-inputs { gap: 8px; }
            .otp-input {
                width: 42px;
                height: 46px;
                font-size: 16px;
                border-radius: 6px;
            }
        }

        @media (max-width: 320px) {
            .otp-inputs { gap: 6px; }
            .otp-input {
                width: 38px;
                height: 42px;
                font-size: 14px;
            }
        }

        @media (min-width: 768px) {
            .otp-inputs { gap: 16px; }
            .otp-input {
                width: 54px;
                height: 54px;
                font-size: 20px;
            }
        }

        .back-link, .resend-section {
            text-align: center;
            margin-top: 20px;
        }

        .back-link a, .resend-link {
            color: #a67c5a;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s;
        }

        .back-link a:hover, .resend-link:hover {
            text-decoration: underline;
            color: #8b6f47;
        }

        .resend-section {
            font-size: 14px;
            color: #666;
        }

        .hidden {
            display: none;
        }

        .error-message {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
        }

        .success-message {
            color: #a67c5a;
            font-size: 12px;
            margin-top: 5px;
            font-weight: 500;
        }

        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 0.8s ease-in-out infinite;
            margin-right: 8px;
        }

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

        .form-input:invalid:not(:focus):not(:placeholder-shown) {
            border-color: #e74c3c;
            background-color: rgba(231, 76, 60, 0.05);
        }

        .form-input:valid:not(:focus):not(:placeholder-shown) {
            border-color: #a67c5a;
            background-color: rgba(166, 124, 90, 0.05);
        }

        .pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
            20%, 40%, 60%, 80% { transform: translateX(4px); }
        }

        .shake {
            animation: shake 0.5s;
        }

       .invalid-feedback {
        color: #dc3545;           /* Bootstrap's red for errors */
        font-size: 0.875rem;      /* Slightly smaller font */
        margin-top: 0.55rem;      /* Small gap above the message */
        display: none;            /* Hidden by default, shown via JS */
        }

        input.is-invalid, 
        textarea.is-invalid, 
        select.is-invalid {

        outline: none;
        }
