/* =====================================================================
   UnderHost @CustomerPanel — WHMCS Login Stylesheet
   Same layout as before, recolored to the new brand system
   (navy + cyan, per DESIGN.MD).

   Original green accents -> cyan/cobalt
   Original blue links    -> brand cyan/cobalt
   Everything else preserved.
   ===================================================================== */

:root {
    --uh-primary:        #00D4FF;
    --uh-primary-dark:   #0091D6;
    --uh-secondary-dark: #0078B8;
    --uh-dark-base:      #0A1220;
    --uh-success:        #34D399;
    --uh-gradient-horizontal: linear-gradient(90deg, #00D4FF, #0091D6);
    --uh-shadow-md: 0 4px 16px rgba(0, 145, 214, 0.35);
    --uh-shadow-lg: 0 6px 22px rgba(0, 145, 214, 0.52);
}

/* ===== General Styling ===== */
body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(
        -45deg,
        #0A1220,
        #0F2040,
        #0078B8,
        #0091D6,
        #00D4FF,
        #0F2040
    );
    background-size: 400% 400%;
    animation: uh-bg-drift 22s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

@keyframes uh-bg-drift {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        background: linear-gradient(135deg, #0A1220, #0F2040, #0091D6, #00D4FF);
    }
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0A1220;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cyan underline accent for the LOGIN heading (was green) */
.login-heading {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 6px;
}

.login-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--uh-gradient-horizontal);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    max-width: 80%;
    text-align: center;
    margin-bottom: 15px;
}

/* ===== Login Page Layout ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.login-container {
    display: flex;
    flex-direction: row;
    width: 750px;
    max-width: 90%;
    height: auto;
    min-height: 55vh;
    max-height: 60vh;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    align-items: stretch;
    transition: all 0.3s ease-in-out;
}

.login-container:hover {
    box-shadow: 0px 12px 30px rgba(0, 145, 214, 0.4);
    transform: translateY(-2px);
}

/* ===== Login Form Container ===== */
.login-form-container {
    width: 50%;
    padding: 55px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== Login Info Container (Right Side - Server Photo) ===== */
.login-info-container {
    width: 50%;
    background: #2c3e50 url('https://cdn.underhost.com/images/login.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0 15px 15px 0;
    position: relative;
}

/* Navy/cyan overlay over the photo (was plain black 60%) */
.login-info-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 20%, rgba(0, 212, 255, 0.25), transparent 50%),
        linear-gradient(135deg,
            rgba(10, 18, 32, 0.78) 0%,
            rgba(15, 32, 64, 0.72) 50%,
            rgba(7, 20, 40, 0.85) 100%);
    border-radius: 0 15px 15px 0;
    z-index: 1;
}

.login-info-container h2 {
    color: #fff;
    font-size: 26px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.login-info-container p {
    font-size: 15px;
    color: #ddd;
    font-family: 'Roboto', sans-serif;
    max-width: 90%;
    line-height: 1.6;
}

.login-info-container * {
    position: relative;
    z-index: 2;
}

/* Branding wrapper — dark frosted platter behind the transparent
   cplogo.png so it stands out cleanly over the photo overlay */
.branding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    margin-bottom: 18px;
    background: rgba(10, 18, 32, 0.55);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.branding img {
    width: 200px;
    max-width: 293px;
    max-height: 103px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 12px rgba(0, 212, 255, 0.5));
    margin: 0;
    display: block;
}

/* ===== Input Group ===== */
.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    max-width: 350px;
    text-align: left;
    margin: auto;
}

.input-group input {
    padding: 16px 45px 16px 40px;
}

.input-group + .input-group {
    margin-top: 15px;
}

.input-group i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    transition: color 0.2s ease;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Cyan focus ring (was green) */
.input-group input:focus {
    border-color: var(--uh-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.input-group:focus-within i:first-child {
    color: var(--uh-primary-dark);
}

.toggle-password-container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.toggle-password-container i {
    font-size: 18px;
    color: #888;
}

/* ===== Extra Options ===== */
.extra-options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    max-width: 350px;
    align-items: center;
    margin: auto;
}

.extra-options a {
    color: var(--uh-primary-dark);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-options label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.extra-options a:hover {
    color: var(--uh-secondary-dark);
    text-decoration: underline;
}

/* ===== Buttons ===== */
.login-btn,
.google-btn {
    padding: 16px;
}

/* Brand-color Login button — cobalt anchors the left (text side),
   cyan finishes on the right, with deeper hover state for clarity */
.login-btn {
    width: 100%;
    max-width: 350px;
    padding: 14px;
    background: linear-gradient(90deg, #0078B8 0%, #0091D6 50%, #00B8E6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px auto;
    box-shadow: var(--uh-shadow-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.login-btn:hover {
    background: linear-gradient(90deg, #0066A0 0%, #0078B8 50%, #0091D6 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--uh-shadow-lg);
}

.login-btn:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.45);
    outline-offset: 3px;
}

/* Loading spinner — hidden by default, shown only when button has .loading */
.loading-spinner {
    display: none;
    margin-left: 8px;
    align-items: center;
}

.login-btn.loading .loading-spinner {
    display: inline-flex;
}

.login-btn.loading {
    opacity: 0.85;
    cursor: progress;
    pointer-events: none;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    max-width: 350px;
    margin: 15px auto;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.google-btn i {
    font-size: 18px;
    margin-right: 10px;
    background: linear-gradient(45deg, #db4437, #f4b400, #0f9d58, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.google-btn:hover {
    border-color: var(--uh-primary);
    transform: scale(1.05);
}

/* ===== Register Link ===== */
.register-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.register-link a {
    color: var(--uh-primary-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.register-link a:hover {
    color: var(--uh-secondary-dark);
    text-decoration: underline;
}

/* ===== Copyright Notice ===== */
.copyright {
    margin-top: 25px;
    font-size: 8px;
    color: #666;
    text-align: center;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
        align-items: center;
        max-height: 80vh;
    }

    .login-form-container,
    .login-info-container {
        width: 100%;
        padding: 25px;
        border-radius: 0;
        text-align: center;
        align-items: center;
        padding-bottom: 20px;
    }

    .login-info-container {
        border-radius: 0 0 15px 15px;
    }

    .login-info-container::before {
        border-radius: 0 0 15px 15px;
    }

    .input-group,
    .login-btn,
    .google-btn,
    .extra-options {
        max-width: 280px;
        margin: 0 auto 22px auto;
        text-align: center;
    }

    .extra-options {
        display: flex;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .input-group + .input-group {
        margin-top: 12px;
    }

    .input-group {
        max-width: 100%;
    }
    .input-group input {
        padding: 16px 45px 16px 40px;
        font-size: 18px;
        width: 100%;
    }

    .branding {
        padding: 12px 22px;
        margin-bottom: 18px;
    }

    .branding img {
        width: 200px;
        max-width: 260px;
        max-height: 92px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0px 0px 12px rgba(0, 212, 255, 0.5));
        margin: 0;
    }

    .login-btn,
    .google-btn {
        width: 100%;
        max-width: 320px;
        padding: 18px;
        font-size: 18px;
    }
    .login-btn {
        max-width: 320px;
        padding: 18px;
        font-size: 18px;
    }
}