/* Modern Design Overrides for Videotron Webmail Mockup */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --v-yellow: #FFD200;
    --v-dark: #1E1E1E;
    --v-gray-bg: #F4F4F4;
    --v-border: #D1D1D1;
    --v-text: #333333;
    --v-link: #555555;
    --font-main: 'Roboto', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--v-text);
    background-color: #FFFFFF;
    min-width: 1000px;
    overflow-x: hidden;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--v-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-logo {
    width: 80px;
    height: 80px;
    background-image: url('https://videotron.com/legacy/residential/static/img/logo-videotron-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}
.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* TOPBAR */
.topbar {
    background-color: var(--v-dark);
    color: #FFFFFF;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    padding: 8px 40px;
}
.topbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
}
.topbar a:hover {
    text-decoration: underline;
}
.topbar-left a.active {
    font-weight: bold;
}
.topbar-right a {
    opacity: 0.8;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 2px solid #EEEEEE;
    height: 80px;
}
.header-top-row {
    display: flex;
    height: 100%;
    align-items: center;
}
.logo-block {
    background-color: var(--v-yellow);
    height: 100%;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-block svg {
    width: 40px;
    fill: var(--v-dark);
}
.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 20px;
    margin-right: 40px;
}
.main-nav a {
    font-size: 16px;
    color: var(--v-text);
    text-decoration: none;
    margin-right: 30px;
}
.main-nav a:hover {
    color: var(--v-dark);
    font-weight: 500;
}

/* MAIN LAYOUT */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

/* LEFT CONTENT */
.content-left {
    width: 60%;
}
.content-left h1 {
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.content-header-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.content-header-row svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: var(--v-text);
}
.content-header-row h2 {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
}
.content-left p {
    font-size: 13px;
    margin-bottom: 15px;
}
.content-left ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 30px;
}
.content-left ul li {
    position: relative;
    margin-bottom: 12px;
    font-size: 13px;
}
.content-left ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: #888888;
}
.hr-line {
    border: none;
    border-top: 1px solid #EEEEEE;
    margin: 30px 0;
}
.content-left .manage-header {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.content-left .link {
    color: var(--v-link);
    text-decoration: underline;
    font-size: 13px;
}

/* RIGHT CONTENT (FORM) */
.content-right {
    width: 32%;
}
.login-box {
    border: 1px solid var(--v-border);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.login-box h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-group label svg {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
}
.form-group input {
    width: 100%;
    height: 32px;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 14px;
}
.btn-submit {
    width: 100%;
    background-color: var(--v-yellow);
    color: var(--v-dark);
    font-size: 14px;
    font-weight: 500;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.btn-submit:hover {
    background-color: #E6BD00;
}
.login-box .forgot-link {
    font-size: 11px;
    color: #888888;
    text-decoration: underline;
}
.error-msg {
    color: #D32F2F;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

/* FOOTER */
.footer {
    margin-top: 60px;
}
.footer-top {
    display: flex;
    background-color: #f7f7f7;
}
.footer-cols {
    flex: 1;
    display: flex;
    padding: 40px;
}
.footer-col {
    flex: 1;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-icons svg, .social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}
.footer-cta {
    width: 350px;
    display: flex;
    flex-direction: column;
}
.cta-box {
    flex: 1;
    background-color: var(--v-yellow);
    display: flex;
    align-items: center;
    padding-left: 60px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    min-height: 100px;
}
.cta-box:hover {
    background-color: #E6BD00;
}
.cta-icon {
    width: 32px;
    height: 32px;
    margin-right: 20px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #EEEEEE;
    max-width: 1000px;
    margin: 0 auto;
}
.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}
.footer-bottom-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustments to match the scaled-down layout in the screenshot */
@media (max-width: 1024px) {
    .header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }
    .header-top-row {
        display: flex;
        width: 100%;
        height: 60px;
    }
    .logo-block {
        width: 80px;
        height: 60px;
    }
    .brand-name {
        margin: auto 20px;
    }
    .main-nav {
        display: flex;
        width: 100%;
        border-top: 1px solid #EEEEEE;
    }
    .main-nav a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        margin: 0;
        border-right: 1px solid #EEEEEE;
        font-size: 13px;
    }
    .main-nav a:last-child {
        border-right: none;
    }
    
    .footer-cta {
        width: 30%;
    }
    .cta-box {
        font-size: 14px;
    }
}
