/*
   The main layout intentionally comes from the same AdminLTE CSS used by
   the live page. These rules preserve the visual details and provide
   sensible fallbacks.
*/

html,
body {
    min-height: 100%;
}


/* ====================================================
   EXISTING LOGIN / ADMINLTE FALLBACK STYLES
==================================================== */

body.login-page {
    font-family: "Source Sans Pro", sans-serif;
    background: #e9ecef;
}

.login-box {
    width: 360px;
}

@media (max-width: 576px) {
    .login-box {
        width: 90%;
        margin-top: 0.5rem;
    }
}

.login-logo {
    margin-bottom: 0.9rem;
    text-align: center;
}

.login-logo img {
    max-width: 100%;
    height: auto;
}

.card {
    background: #fff;
}

.login-card-body {
    background: #fff;
    color: #666;
    padding: 20px;
}

.login-box-msg {
    margin: 0;
    padding: 0;
    text-align: center;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;

    font-family: "Source Sans Pro", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #495057;
    background-color: #fff;

    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1rem;
}

.safe-error {
    min-height: 18px;
    margin-top: 8px;

    font-size: 14px;
    color: #dc3545;
}


/* ====================================================
   FLOATING SIDE WIDGET
==================================================== */

.side-widget {
    position: fixed;
    top: 84px;
    right: 0;
    z-index: 1000;

    width: 58px;
    height: 69px;

    padding: 0;

    border: 0;
    border-radius: 12px 0 0 12px;

    background: #252821;

    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.28);
}

.sunburst {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 38px;
    height: 38px;

    transform: translate(-50%, -50%);
}

.sunburst i {
    position: absolute;

    left: 17px;
    top: 0;

    width: 4px;
    height: 15px;

    border-radius: 3px;

    background: #e6ef00;

    transform-origin: 2px 19px;
}

.sunburst i:nth-child(1) {
    transform: rotate(0deg);
}

.sunburst i:nth-child(2) {
    transform: rotate(45deg);
}

.sunburst i:nth-child(3) {
    transform: rotate(90deg);
}

.sunburst i:nth-child(4) {
    transform: rotate(135deg);
}

.sunburst i:nth-child(5) {
    transform: rotate(180deg);
}

.sunburst i:nth-child(6) {
    transform: rotate(225deg);
}

.sunburst i:nth-child(7) {
    transform: rotate(270deg);
}

.sunburst i:nth-child(8) {
    transform: rotate(315deg);
}

@media (max-width: 576px) {
    .side-widget {
        top: 64px;
        width: 50px;
        height: 60px;
    }
}


/* ====================================================
   LOGIN FIRST-SCREEN LAYOUT
   Login occupies complete initial viewport.
   Information appears only after scrolling.
==================================================== */

body.login-page {
    display: block !important;

    min-height: 100vh !important;

    margin: 0;

    background: #e9ecef;
}

/*
   IMPORTANT:
   The login box itself becomes the first full-screen section.
   min-height rather than fixed height keeps it safe on
   smaller mobile screens.
*/
body.login-page > .login-box {
    width: 360px;

    min-height: 100vh;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* MOBILE LOGIN FIRST SCREEN */

@media (max-width: 576px) {
    body.login-page > .login-box {
        width: 90%;

        min-height: 100vh;

        margin-top: 0 !important;
        margin-bottom: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        justify-content: center;
    }
}


/* EXTRA SMALL MOBILE */

@media (max-width: 360px) {
    body.login-page > .login-box {
        width: calc(100% - 24px);
        min-height: 100vh;
    }
}


/* =========================================================
   REDDYPANEL INFORMATION SECTION
   Safe namespace: rp-info-*
   Does not override AdminLTE / Bootstrap classes
========================================================= */

.rp-info-section {
    width: 100%;

    padding: 80px 20px;

    background: #f7f9fc;

    border-top: 1px solid #dce2e8;

    font-family: "Source Sans Pro", sans-serif;
}

.rp-info-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* =========================================================
   INFORMATION HEADER
========================================================= */

.rp-info-header {
    max-width: 760px;

    margin: 0 auto 50px;

    text-align: center;
}

.rp-info-badge {
    display: inline-block;

    margin-bottom: 15px;

    padding: 7px 14px;

    color: #007bff;
    background: #e8f2ff;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.rp-info-title {
    margin: 0 0 15px;

    color: #253444;

    font-family: "Source Sans Pro", sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
}

.rp-info-intro {
    margin: 0;

    color: #6c757d;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   QUICK INFORMATION CARDS
========================================================= */

.rp-info-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 40px;
}

.rp-info-quick-card {
    min-width: 0;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e1e6eb;
    border-radius: 8px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.rp-info-quick-card:hover {
    transform: translateY(-4px);

    border-color: #cbdcf0;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.rp-info-quick-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 18px;

    color: #007bff;
    background: #edf5ff;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
}

.rp-info-quick-card h3 {
    margin: 0 0 10px;

    color: #2e3a46;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.rp-info-quick-card p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MAIN CONTENT CARDS
========================================================= */

.rp-info-content-card {
    margin-bottom: 20px;

    padding: 32px 35px;

    background: #ffffff;

    border: 1px solid #e1e6eb;
    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
}

.rp-info-content-card h2 {
    margin: 0 0 15px;

    color: #2e3a46;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.rp-info-content-card p {
    margin: 0 0 10px;

    color: #626f7b;

    font-size: 15px;
    line-height: 1.85;
}

.rp-info-content-card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TWO-COLUMN INFORMATION AREA
========================================================= */

.rp-info-two-column {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 20px;
}

.rp-info-two-column .rp-info-content-card {
    height: 100%;

    margin-bottom: 0;
}


/* =========================================================
   SECURITY SECTION
========================================================= */

.rp-info-security {
    margin: 35px 0;

    padding: 38px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #1c2c3b 0%,
        #273e52 100%
    );

    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(28, 44, 59, 0.12);
}

.rp-info-security-head {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.rp-info-security-icon {
    flex: 0 0 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: #5fe0c1;
    background: rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    font-size: 22px;
    font-weight: 700;
}

.rp-info-security-label {
    display: block;

    margin-bottom: 3px;

    color: #69d7bd;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rp-info-security h2 {
    margin: 0;

    color: #ffffff;

    font-size: 23px;
    font-weight: 600;
    line-height: 1.35;
}

.rp-info-security-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.rp-info-security-point {
    padding: 14px 16px;

    color: #e7edf3;
    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INFORMATION FOOTER
========================================================= */

.rp-info-footer {
    width: 100%;

    padding: 25px 20px;

    color: #aeb7bf;
    background: #252f38;

    font-family: "Source Sans Pro", sans-serif;
}

.rp-info-footer-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.rp-info-footer p {
    margin: 0;

    color: #aeb7bf;

    font-size: 12px;
    line-height: 1.5;
}

.rp-info-footer-links {
    display: flex;

    align-items: center;

    gap: 22px;
}

.rp-info-footer a {
    color: #b8c1c9;

    font-size: 12px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.rp-info-footer a:hover {
    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {
    .rp-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {
    .rp-info-section {
        padding: 55px 15px;
    }

    .rp-info-header {
        margin-bottom: 35px;
    }

    .rp-info-title {
        font-size: 27px;
        line-height: 1.3;
    }

    .rp-info-intro {
        font-size: 15px;
    }

    .rp-info-two-column {
        grid-template-columns: 1fr;
    }

    .rp-info-security-grid {
        grid-template-columns: 1fr;
    }

    .rp-info-security {
        padding: 28px 22px;
    }

    .rp-info-security-head {
        align-items: flex-start;
    }

    .rp-info-footer-inner {
        flex-direction: column;

        justify-content: center;

        text-align: center;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 500px) {
    .rp-info-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .rp-info-grid {
        grid-template-columns: 1fr;
    }

    .rp-info-quick-card {
        padding: 22px 20px;
    }

    .rp-info-content-card {
        padding: 25px 20px;
    }

    .rp-info-title {
        font-size: 24px;
    }

    .rp-info-security {
        padding: 24px 18px;
    }

    .rp-info-security h2 {
        font-size: 20px;
    }

    .rp-info-footer-links {
        gap: 15px;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 360px) {
    .rp-info-title {
        font-size: 22px;
    }

    .rp-info-content-card {
        padding: 22px 17px;
    }

    .rp-info-quick-card {
        padding: 20px 17px;
    }
}