@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.textright {
    font-size: 1.4em;
    opacity: 1!important;
    height: 30px;
}
#recover-pass-td {
    display: none!important;
}
* {
    font-family: 'Open Sans'!important;
}
body#MagicBody {
    background: none!important;
    padding: 0px;
    font-size: 13px!important;
}
#MagicWrapper .MagicOuterTable {
    border: none;
}
.MagicContentTable {
    background: none;
    background-color: white;
}
div:not(.magic-authenticated) .MagicContentTable .MagicContentCell {
    display: flex;
    padding: 0;
    justify-content: center;
    height: 80%;
}
.MagicContentTable .MagicContentCell #loginContentCell {
    box-shadow: none;
}
.MagicContentTable .login-info-content {
    line-height: 25px;
    width: 545px;
}
.MagicContentTable .login-info-content > * {
    margin-bottom: 20px;
    font-size: 1.4em;
}
.MagicContentTable .login-info-content h4 {
    color: black;
}
#recover-pass-td {
    color: black!important;
}
.poweredBy {
    width: 195px;
}
.forgot-password-row {
    display: none!important;
}
.formFoot {
    padding-top: 10px!important;
}
.poweredBy a {
    width: fit-content;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0 auto;
}
.poweredBy img {
    width: 70px;
}

#login-form-table tbody tr td #login-email,
#login-form-table tbody tr td #login-password {
    border-radius: 0px;
    border: 2px solid black;
    height: 35px;
}

#login-form-table tr td:first-child {
    padding-top: 30px;
}
#login-form-table input[type="submit"] {
    padding: 5px 15px!important;
    border-radius: 0px!important;
}

/* --- Custom Header Styles --- */

/* Main container for the new header */
.custom-header-wrapper {
    width: 100%;
    background-color: #ffffff; 
    font-family: Arial, sans-serif;
}

/* Flex container for the logo and contact info */
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 10px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left img {
    height: 40px;
}

/* Container for the contact items on the right */
.header-right {
    display: flex;
    align-items: end;
    flex-direction: column;
    font-size: 1.3em;
}

/* Styling for each contact item */
.contact-item {
    display: flex;
    align-items: center;
    margin-left: 25px; 
    color: #333;
    font-size: 0.9em;
}

.contact-item img {
    height: 16px; 
    margin-right: 8px;
}

.contact-item a,
.contact-item span {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* The solid dark grey bar under the header */
.header-bar {
    height: 40px;
    background-color: #5D6369; 
    width: 100%;
}

/* --- End Custom Header Styles --- */

/* --- Custom Footer Styles --- */

/* Main container for the new footer */
.custom-footer-container {
    border: 1px solid #515557; 
    border-radius: 12px 12px 0 0; 
    overflow: hidden;          
    font-family: Arial, sans-serif;
}

/* The top white section with contact info */
.footer-top-section {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    background-color: #ffffff; 
    padding: 20px 10px;
    flex-wrap: wrap; 
}

/* Styling for each individual item (icon + text) in the top section */
.footer-item {
    display: flex;
    align-items: center;
    margin: 5px 15px; 
}

/* Styling for the icons */
.footer-item img {
    margin-right: 8px; 
    height: 16px;      
    width: 16px;       
}

/* Styling for the text and links in the footer */
.footer-item a,
.footer-item span {
    color: #333333; 
    text-decoration: none; 
    font-size: 0.9em;
}

/* Changes link color on hover for interactivity */
.footer-item a:hover {
    text-decoration: underline;
}

/* The bottom dark grey section */
.MagicCopyRight {
    border: none;
    background-color: #5D6369; 
    color: #ffffff;            
    padding: 12px;
    text-align: center;
    font-size: 0.8em;
}

/* --- End Custom Footer Styles --- */


/* Change the title of the login form */
/* This uses the method from the MagicMail guide to replace the text */
#login-form-table h4 {
    visibility: hidden;
    position: relative;
    height: 17px!important;
}
table.MagicEmbeddedTable th {
    border-bottom: 2px solid black;
    padding-bottom: 13px!important;
}
table.MagicEmbeddedTable tbody tr:nth-child(3) td:first-child {
    padding-top: 20px!important;
}
table.MagicEmbeddedTable tbody tr:nth-child(3) td.show-password label {
    margin-top: 20px!important;
    font-size: 0.9em!important;
    input {
        border-radius: 0px!important;
        scale: 1.2;
        margin-right: 15px!important;
        color: black;
    }
}
table.MagicEmbeddedTable tbody tr:nth-child(2) td:first-child {
    padding-top: 40px!important;
}
#login-form-table h4::before {
    content: 'Netago';
    margin-left: 8ch;
    font-family: 'Open Sans'!important;
    color: black;
    font-weight: bold;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    font-family: Arial, sans-serif;
    font-size: 1em;
}
#login-form-table h4::after {
    content: 'Sign in to \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0 \00a0Webmail';
    font-family: 'Open Sans'!important;
    color: black;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 1em;
}

/* Make the 'Email:' and 'Password:' labels bold */
#login-form-table .textright label {
    font-weight: bold;
}

/* Restyle the 'Login' button */
#login-form-table input[type="submit"] {
    background-color: #5D6369; 
    color: #ffffff;
    border: 1px solid #5D6369;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

#login-form-table input[type="submit"]:hover {
    background-color: #4a4f54; 
    border-color: #4a4f54;
}


/* Remove the default shadows and borders around the content and login form */
#login-form-wrapper {
    box-shadow: none;
    border: none;
    padding: 0;
}

