/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   ROOT COLORS
========================================================= */

:root {
    --msu-red: #b5121b;
    --msu-dark-red: #850b12;
    --msu-light-red: #d71920;

    --dark: #182230;
    --text: #303946;
    --muted: #69717d;

    --white: #ffffff;
}


/* =========================================================
   BODY
========================================================= */

body {
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f7f7 50%,
            #eeeeee 100%
        );

    color: var(--text);

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.background-shape {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;
}


.shape-one {
    width: 300px;
    height: 300px;

    top: -170px;
    left: -140px;

    background:
        radial-gradient(
            circle,
            rgba(181, 18, 27, 0.09) 0%,
            rgba(181, 18, 27, 0.03) 55%,
            transparent 70%
        );
}


.shape-two {
    width: 330px;
    height: 330px;

    right: -190px;
    bottom: -190px;

    background:
        radial-gradient(
            circle,
            rgba(181, 18, 27, 0.09) 0%,
            rgba(181, 18, 27, 0.03) 55%,
            transparent 70%
        );
}


/* =========================================================
   PAGE WRAPPER
========================================================= */

.page-wrapper {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 20px;

    position: relative;

    z-index: 1;
}


/* =========================================================
   MAIN ROLE CONTAINER
========================================================= */

.role-container {
    width: 100%;

    max-width: 500px;

    background: rgba(255, 255, 255, 0.98);

    border-radius: 16px;

    border: 1px solid rgba(181, 18, 27, 0.15);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.11);

    padding: 27px 25px 22px;

    position: relative;
}


/* =========================================================
   TOP RED LINE
========================================================= */

.role-container::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--msu-dark-red),
            var(--msu-red),
            var(--msu-light-red),
            var(--msu-red),
            var(--msu-dark-red)
        );

    border-radius:
        16px 16px 0 0;
}


/* =========================================================
   HEADER
========================================================= */

.role-header {
    text-align: center;

    margin-bottom: 20px;
}


/* =========================================================
   LOGO
========================================================= */

.logo-wrapper {
    width: 75px;
    height: 75px;

    margin: 0 auto 7px;

    display: flex;

    justify-content: center;
    align-items: center;
}


.school-logo {
    width: 70px;
    height: 70px;

    object-fit: contain;
}


/* =========================================================
   UNIVERSITY NAME
========================================================= */

.university-name {
    color: var(--dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-top: 2px;
}


.city-name {
    color: var(--msu-red);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 1.5px;

    margin-top: 2px;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.role-header h1 {
    color: var(--dark);

    font-size: 23px;

    font-weight: 750;

    margin-top: 10px;

    line-height: 1.2;
}


/* =========================================================
   INSTRUCTION
========================================================= */

.instruction {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}


/* =========================================================
   ROLE CARDS
========================================================= */

.roles {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    width: 100%;

    max-width: 450px;

    margin: 0 auto;
}


/* =========================================================
   ROLE CARD
========================================================= */

.role-card {
    min-height: 145px;

    padding: 16px 10px 14px;

    background: #ffffff;

    border: 1px solid #dedfe2;

    border-radius: 10px;

    text-decoration: none;

    color: var(--text);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================================
   CARD TOP ACCENT
========================================================= */

.role-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--msu-red);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.25s ease;
}


/* =========================================================
   CARD HOVER
========================================================= */

.role-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(181, 18, 27, 0.35);

    box-shadow:
        0 10px 20px
        rgba(181, 18, 27, 0.12);
}


.role-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   ROLE ICON
========================================================= */

.role-icon {
    width: 55px;
    height: 55px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--msu-red),
            var(--msu-dark-red)
        );

    color: white;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 22px;

    margin-bottom: 10px;

    box-shadow:
        0 6px 13px
        rgba(181, 18, 27, 0.18);

    transition:
        transform 0.25s ease;
}


.role-card:hover .role-icon {
    transform: scale(1.05);
}


/* =========================================================
   ROLE TITLE
========================================================= */

.role-content h2 {
    color: var(--dark);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 5px;
}


/* =========================================================
   ROLE DESCRIPTION
========================================================= */

.role-content p {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.4;

    max-width: 130px;
}


/* =========================================================
   ROLE ARROW
========================================================= */

.role-arrow {
    margin-top: auto;

    padding-top: 9px;

    color: var(--msu-red);

    font-size: 11px;

    opacity: 0;

    transform: translateX(-4px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.role-card:hover .role-arrow {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   ADMINISTRATOR
========================================================= */

.administrator {
    margin-top: 17px;

    text-align: center;

    font-size: 11px;

    color: var(--muted);
}


.administrator span {
    margin-right: 4px;
}


.administrator a {
    color: var(--msu-red);

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.administrator a:hover {
    color: var(--msu-dark-red);
}


.administrator i {
    font-size: 9px;

    margin-left: 3px;
}


/* =========================================================
   BACK TO HOME
========================================================= */

.back-home {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 5px;

    width: fit-content;

    margin: 11px auto 0;

    color: #737981;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

    transition:
        color 0.2s ease;
}


.back-home:hover {
    color: var(--msu-red);
}


.back-home i {
    font-size: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;

    max-width: 500px;

    margin-top: 12px;

    text-align: center;
}


.footer-line {
    height: 1px;

    width: 100%;

    background: #dedfe2;

    margin-bottom: 8px;
}


footer p {
    color: #7a8088;

    font-size: 9px;

    letter-spacing: 0.2px;
}


footer strong {
    color: var(--msu-red);
}


footer span {
    margin: 0 6px;

    color: #b0b4ba;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .role-container {
        max-width: 500px;

        padding:
            26px 23px 21px;
    }

    .roles {
        gap: 9px;
    }

    .role-card {
        min-height: 140px;

        padding:
            15px 9px 13px;
    }

    .role-icon {
        width: 53px;
        height: 53px;

        font-size: 21px;

        margin-bottom: 9px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .page-wrapper {
        padding:
            15px 10px;
    }


    .role-container {
        max-width: 390px;

        padding:
            25px 15px 20px;

        border-radius: 13px;
    }


    .role-container::before {
        border-radius:
            13px 13px 0 0;
    }


    .logo-wrapper {
        width: 70px;
        height: 70px;
    }


    .school-logo {
        width: 66px;
        height: 66px;
    }


    .university-name {
        font-size: 9px;

        letter-spacing: 1.1px;
    }


    .city-name {
        font-size: 7px;

        letter-spacing: 1px;
    }


    .role-header h1 {
        font-size: 21px;
    }


    .instruction {
        font-size: 10px;
    }


    .roles {
        grid-template-columns: 1fr;

        max-width: 300px;

        gap: 9px;
    }


    .role-card {
        min-height: 125px;

        padding: 15px;
    }


    .role-icon {
        width: 50px;
        height: 50px;

        font-size: 20px;
    }


    .role-content h2 {
        font-size: 14px;
    }


    .role-content p {
        font-size: 10px;

        max-width: 180px;
    }


    .administrator {
        font-size: 10px;

        margin-top: 14px;
    }


    .back-home {
        font-size: 9px;

        margin-top: 9px;
    }


    footer {
        max-width: 390px;

        margin-top: 10px;
    }


    footer p {
        font-size: 8px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 360px) {

    .role-container {
        padding:
            22px 12px 18px;
    }


    .role-header {
        margin-bottom: 16px;
    }


    .logo-wrapper {
        width: 62px;
        height: 62px;
    }


    .school-logo {
        width: 58px;
        height: 58px;
    }


    .role-header h1 {
        font-size: 19px;
    }


    .roles {
        max-width: 270px;
    }


    .role-card {
        min-height: 118px;
    }

}