/* Pro Mail Portal — Working Solutions-inspired visual treatment
   Cosmetic only. The original SurgeMail login.htm and authentication flow
   remain intact. ID selectors intentionally begin with body because the
   SurgeMail legacy CSS parser treats a line beginning with # as a comment. */

html,
body {
    min-height: 100%;
    margin: 0;
}

body,
table,
input,
select,
button {
    font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: #454545;
    background: #17191d;
    text-align: center;
}

/* Clean brand header with the approved full-color logo. */
body::before {
    position: relative;
    z-index: 10;
    display: block;
    height: 82px;
    box-sizing: border-box;
    content: "";
    border-top: 6px solid #292b30;
    border-bottom: 1px solid #e8e8e8;
    background-color: #ffffff;
    background-image: url("working_solutions_main.png");
    background-position: 28px center;
    background-repeat: no-repeat;
    background-size: 178px auto;
}

body::after {
    position: absolute;
    z-index: 11;
    top: 36px;
    right: 34px;
    content: "PRO MAIL PORTAL";
    color: #454545;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

body #appearance_bg {
    position: relative;
    display: flex;
    min-height: calc(100vh - 82px);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 58px 18px 70px;
    background-color: #17191d;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.085) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(48,216,39,0.11) 0 1px, transparent 2px),
        linear-gradient(135deg, rgba(52,163,212,0.12), transparent 42%),
        linear-gradient(315deg, rgba(133,55,211,0.13), transparent 45%);
    background-position: 0 0, 13px 13px, 0 0, 0 0;
    background-size: 26px 26px, 31px 31px, 100% 100%, 100% 100%;
}

body #appearance_bg::before {
    position: absolute;
    top: 7%;
    left: -8%;
    width: 116%;
    height: 86%;
    content: "";
    border-top: 1px solid rgba(52,163,212,0.16);
    border-bottom: 1px solid rgba(48,216,39,0.13);
    transform: rotate(-6deg);
    pointer-events: none;
}

body #appearance_bg::after {
    position: absolute;
    right: 8%;
    bottom: 8%;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(133,55,211,0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(133,55,211,0.06),
        0 0 0 48px rgba(52,163,212,0.04);
    pointer-events: none;
}

body #login_outer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

body #login_inner {
    width: 100%;
}

body #login_panel_pre {
    padding: 28px 34px 14px;
    border: 1px solid #e1e4e8;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(0,0,0,0.34);
    text-align: center;
}

body #login_title {
    color: #30343b;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
}

body #login_title::before {
    display: block;
    margin-bottom: 8px;
    content: "SECURE EMAIL ACCESS";
    color: #8537d3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

body #login_title::after {
    display: block;
    width: 68px;
    height: 4px;
    margin: 12px auto 0;
    content: "";
    border-radius: 99px;
    background: linear-gradient(90deg, #8537d3 0%, #34a3d4 52%, #30d827 100%);
}

body #login_title_comment {
    display: block;
    margin-top: 8px;
    color: #69727b;
    font-size: 14px;
}

body #login_panel {
    padding: 8px 34px 24px;
    border-right: 1px solid #e1e4e8;
    border-left: 1px solid #e1e4e8;
    background: #ffffff;
    text-align: center;
}

body #login_panel_header {
    display: none;
}

body #login_panel table {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 14px;
}

body #login_panel table td:first-child {
    width: 108px;
    padding-right: 13px;
    color: #454545;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

body #login_panel table td:nth-child(2) {
    text-align: left;
}

body #login_panel input[type="text"],
body #login_panel input[type="password"],
body #login_panel input[type="twofactor"] {
    box-sizing: border-box;
    height: 38px;
    padding: 8px 11px;
    border: 1px solid #bfc7cf;
    border-radius: 7px;
    background: #ffffff;
    color: #30343b;
    font-size: 14px;
}

body #login_panel input[type="text"] {
    width: 160px !important;
}

body #login_panel input[type="password"],
body #login_panel input[type="twofactor"] {
    width: 220px !important;
}

body #login_panel select {
    min-height: 34px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #bfc7cf;
    border-radius: 7px;
    background: #ffffff;
    color: #454545;
    font-size: 13px;
}

body #interface_ex {
    max-width: 120px;
}

body #language {
    max-width: 150px;
}

body #login_panel input:focus,
body #login_panel select:focus {
    outline: 3px solid rgba(133,55,211,0.16);
    border-color: #8537d3;
}

body #remember_me td {
    padding-top: 2px;
    color: #69727b;
    font-size: 13px;
    text-align: left !important;
}

body #remember_me input {
    margin-left: 7px;
    vertical-align: middle;
}

body #cmd_login {
    width: 220px;
    height: 42px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #b35cff 0%, #9b22ef 100%);
    box-shadow: 0 7px 15px rgba(133,55,211,0.28);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

body #cmd_login:hover,
body #cmd_login:focus {
    background: linear-gradient(180deg, #c279ff 0%, #8537d3 100%);
}

body #account_links {
    padding-top: 2px;
    text-align: center !important;
}

body #account_links a {
    color: #8537d3;
    font-weight: 600;
}

body #login_panel_post {
    padding: 0 34px 28px;
    border: 1px solid #e1e4e8;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(0,0,0,0.34);
    text-align: left;
}

body #login_post_comment {
    box-sizing: border-box;
    padding: 17px 18px 15px;
    border: 1px solid #f1b7bd;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%);
    color: #454545;
    line-height: 1.46;
}

body #login_post_comment .password-initiative-eyebrow {
    margin-bottom: 5px;
    color: #dc3545;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

body #login_post_comment .password-initiative-eyebrow::before {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dc3545;
    color: #ffffff;
    content: "!";
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    vertical-align: -2px;
}

body #login_post_comment .password-initiative-title {
    margin: 0 0 8px;
    color: #30343b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

body #login_post_comment p {
    margin: 7px 0;
    font-size: 13px;
}

body #login_post_comment .password-initiative-button {
    display: inline-block;
    margin: 10px 0 6px;
    padding: 10px 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, #e85d6b 0%, #dc3545 100%);
    box-shadow: 0 6px 14px rgba(220,53,69,0.28);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-decoration: none;
}

body #login_post_comment .password-initiative-button:hover,
body #login_post_comment .password-initiative-button:focus {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 7px 16px rgba(200,35,51,0.34);
}

body #login_post_comment .password-initiative-footnote {
    margin-bottom: 0;
    color: #69727b;
    font-size: 12px;
}

body #error {
    margin: 8px 0 15px;
    padding: 10px 12px;
    border: 1px solid #e7b9b9;
    border-radius: 7px;
    background: #fff3f3;
    color: #a32626;
    font-size: 13px;
    font-weight: 600;
}

body #bad_browser {
    color: #a32626;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    body::before {
        background-position: 18px center;
        background-size: 145px auto;
    }

    body::after {
        top: 36px;
        right: 16px;
        font-size: 10px;
    }

    body #appearance_bg {
        padding: 30px 10px 42px;
    }

    body #login_panel_pre,
    body #login_panel,
    body #login_panel_post {
        padding-right: 18px;
        padding-left: 18px;
    }

    body #login_panel table td:first-child {
        width: 90px;
        padding-right: 8px;
    }

    body #login_panel input[type="text"] {
        width: 145px !important;
    }

    body #login_panel input[type="password"],
    body #login_panel input[type="twofactor"] {
        width: 190px !important;
    }
}
