/*
 * Login Page Styles - Result Trackers Insight
 * Matches the branded mockup design with dark navy gradient, red accents
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap');

/* ============================================
   Page-level overrides (login page only)
   ============================================ */

body:has(.login-page) {
    background-color: #0f1f51;
}

body:has(.login-page) #content {
    background: linear-gradient(
        180deg,
        #0f1f51 0%,
        #0f1f51 25%,
        #ffffff 100%
    );
    padding: 0;
    flex: none;
}

/* ============================================
   Logo Section
   ============================================ */

.login-logo {
    text-align: center;
    padding: 56px 30px 24px 20px;
}

.login-logo-group {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-align: left;
}

.login-logo-icon {
    flex-shrink: 0;
    position: relative;
    top: -8px;
}

.login-logo-text-group {
    display: flex;
    flex-direction: column;
}

.login-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.login-logo-result {
    color: #ED1C24;
    font-weight: 700;
}

.login-logo-trackers {
    color: #ffffff;
    font-weight: 300;
}

.login-logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8b95b5;
    margin-left: 2px;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ============================================
   Login Card
   ============================================ */

.login-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 20px 0;
}

.login-card {
    background: linear-gradient(180deg, #e2e3e8 0%, #c8c9d0 100%);
    border-radius: 10px;
    padding: 36px 44px 32px;
    width: 100%;
    max-width: 520px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15);
}

.login-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 32px;
}

.login-card-title span {
    color: #d2232b;
    font-weight: 800;
    font-style: italic;
}

/* Alert within login card */
.login-card .alert {
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================
   Form Fields
   ============================================ */

.login-field {
    margin-bottom: 16px;
}

.login-field input {
    width: 100%;
    height: 48px;
    border: 1px solid #b8b8c0;
    border-radius: 25px;
    padding: 0 22px;
    font-size: 15px;
    font-family: 'Inter', 'Montserrat', sans-serif;
    background: #ffffff;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input:focus {
    border-color: #777;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.login-field input::placeholder {
    color: #999;
}

/* ============================================
   Login Button & Actions
   ============================================ */

.login-actions {
    text-align: right;
    margin-top: 22px;
    margin-bottom: 14px;
}

.login-btn {
    background-color: #C41A20;
    color: #fff;
    border: none;
    border-radius: 25px;
    height: 42px;
    padding: 0 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(196, 26, 32, 0.3);
}

.login-btn:hover {
    background-color: #a8161b;
    box-shadow: 0 4px 12px rgba(196, 26, 32, 0.4);
}

.login-btn:active {
    transform: scale(0.97);
}

/* ============================================
   Forgot Password Link
   ============================================ */

.login-forgot {
    text-align: center;
    padding-top: 4px;
}

.login-forgot a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ============================================
   Our Objective Section
   ============================================ */

.login-objective {
    text-align: center;
    padding: 52px 24px 44px;
    max-width: 900px;
    margin: 0 auto;
}

.login-objective h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #d2232b;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.login-objective p {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #0f1f51;
    line-height: 1.4;
    letter-spacing: -0.1px;
    margin: 0;
}

/* ============================================
   Red SaaS Banner
   ============================================ */

.login-banner {
    background-color: #d2232b;
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ============================================
   Login Footer
   ============================================ */

.login-footer {
    background-color: #0f1f51;
    color: #ffffff;
    padding: 36px 20px 28px;
    text-align: center;
}

.login-footer-contact {
    margin-bottom: 5px;
}

.login-footer-contact h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
}

.login-footer-info {
    display: inline-flex;
    gap: 48px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 2px solid #ed1f28;
    padding-top: 5px;
}

.login-footer-info span {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
}

.login-footer-logo {
    margin-bottom: 20px;
}


.login-footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6b7590;
    margin-top: 16px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 576px) {
    .login-logo {
        padding: 36px 16px 32px;
    }

    .login-logo-mark {
        gap: 10px;
    }

    .login-logo-text {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .login-logo-icon svg {
        width: 36px;
        height: 36px;
    }

    .login-logo-subtitle {
        font-size: 12px;
    }

    .login-card {
        padding: 28px 24px 24px;
    }

    .login-card-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .login-objective h3 {
        font-size: 17px;
    }

    .login-objective p {
        font-size: 13px;
    }

    .login-footer-info {
        flex-direction: column;
        gap: 6px;
    }

    .ptm-logo-text {
        font-size: 38px;
        letter-spacing: 5px;
    }

    .ptm-logo-subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }
}
