/* =========================================================
   DDM COLLEGE OF PHARMACY
   PREMIUM LOGIN PAGE
   ========================================================= */

:root {
    --navy: #071a2b;
    --soft-navy: #0c263b;
    --teal: #087f8c;
    --light-teal: #12a2ad;

    --gold: #c9a227;
    --light-gold: #e1c45b;

    --ivory: #f8f6ef;
    --white: #ffffff;

    --text: #102331;
    --muted: #657681;

    --border: rgba(7, 26, 43, 0.11);

    --shadow:
        0 25px 70px rgba(7, 26, 43, 0.13);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    margin: 0;

    font-family:
        "Inter",
        "Figtree",
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(18, 162, 173, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(201, 162, 39, 0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--ivory) 52%,
            #ffffff 100%
        );
}


/* =========================================================
   GUEST WRAPPER
   ========================================================= */

.guest-page {
    position: relative;

    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;
}


/* =========================================================
   DECORATIVE GLOW
   ========================================================= */

.guest-page::before {
    content: "";

    position: fixed;

    width: 420px;
    height: 420px;

    top: -180px;
    left: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(18, 162, 173, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


.guest-page::after {
    content: "";

    position: fixed;

    width: 450px;
    height: 450px;

    right: -190px;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(201, 162, 39, 0.13),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   LOGO
   ========================================================= */

.guest-logo {
    position: absolute;

    top: 35px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 5;
}


.guest-logo a {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    border:
        2px solid
        rgba(201, 162, 39, 0.55);

    box-shadow:
        0 12px 35px rgba(7, 26, 43, 0.13),
        0 0 0 7px rgba(255, 255, 255, 0.60);

    transition: all 0.3s ease;
}


.guest-logo a:hover {
    transform: translateY(-3px);

    border-color: var(--gold);

    box-shadow:
        0 18px 45px rgba(7, 26, 43, 0.18),
        0 0 0 8px rgba(18, 162, 173, 0.08);
}


.guest-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    border-radius: 50%;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.guest-card {
    position: relative;

    width: 100%;
    max-width: 500px;

    margin-top: 55px;

    padding: 45px 44px 35px;

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid
        rgba(7, 26, 43, 0.09);

    border-radius: 28px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    overflow: hidden;

    z-index: 2;
}


/* Top gradient line */

.guest-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--light-gold),
            var(--teal),
            var(--light-teal)
        );
}


/* =========================================================
   LOGIN CONTENT
   ========================================================= */

.pharmacy-login {
    width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.login-header {
    text-align: center;

    margin-bottom: 32px;
}


.login-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--teal)
        );

    color: var(--light-gold);

    font-size: 23px;

    box-shadow:
        0 12px 28px rgba(8, 127, 140, 0.20);
}


.login-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--teal);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.2px;

    text-transform: uppercase;
}


.login-header h1 {
    margin: 0;

    color: var(--navy);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 43px;

    font-weight: 700;

    line-height: 1.05;
}


.login-header h1 span {
    color: var(--teal);

    font-style: italic;
}


.login-header p {
    max-width: 350px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   SESSION STATUS
   ========================================================= */

.login-status {
    margin-bottom: 20px;

    padding: 11px 14px;

    border-radius: 10px;

    background:
        rgba(8, 127, 140, 0.08);

    color: var(--teal);

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 21px;
}


.form-group {
    width: 100%;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.2px;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;
}


.input-wrapper input {
    width: 100%;

    height: 52px;

    padding:
        0 48px
        0 46px;

    border:
        1px solid
        rgba(7, 26, 43, 0.13);

    border-radius: 13px;

    outline: none;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.input-wrapper input::placeholder {
    color: #9aa8af;
}


.input-wrapper input:focus {
    border-color: var(--teal);

    box-shadow:
        0 0 0 4px
        rgba(8, 127, 140, 0.09);
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.input-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    width: 19px;
    height: 19px;

    transform: translateY(-50%);

    color: var(--teal);

    pointer-events: none;
}


.input-icon svg {
    width: 100%;
    height: 100%;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    width: 30px;
    height: 30px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.password-toggle:hover {
    color: var(--teal);

    background:
        rgba(8, 127, 140, 0.08);
}


.password-toggle svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   ERRORS
   ========================================================= */

.login-error {
    margin-top: 7px;

    color: #b42318;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    position: relative;

    width: 100%;
    height: 54px;

    margin-top: 5px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--navy) 0%,
            var(--soft-navy) 45%,
            var(--teal) 100%
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 12px 30px
        rgba(8, 127, 140, 0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.login-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent
        );

    transition: left 0.6s ease;
}


.login-button:hover::before {
    left: 100%;
}


.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 38px
        rgba(8, 127, 140, 0.29);
}


.login-button:active {
    transform: translateY(0);
}


.login-button svg {
    width: 18px;
    height: 18px;

    transition: transform 0.25s ease;
}


.login-button:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    margin-top: 28px;

    color: #8a989f;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.footer-line {
    width: 38px;
    height: 1px;

    background:
        rgba(7, 26, 43, 0.12);
}


/* =========================================================
   BACK TO WEBSITE
   ========================================================= */

.back-home {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    color: var(--teal);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.back-home:hover {
    color: var(--gold);

    transform: translateX(-2px);
}


.back-home svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .guest-page {
        padding:
            105px
            16px
            30px;
    }


    .guest-logo {
        top: 25px;
    }


    .guest-logo a {
        width: 66px;
        height: 66px;
    }


    .guest-logo img {
        width: 49px;
        height: 49px;
    }


    .guest-card {
        margin-top: 10px;

        padding:
            34px
            23px
            28px;

        border-radius: 22px;
    }


    .login-header {
        margin-bottom: 27px;
    }


    .login-header h1 {
        font-size: 37px;
    }


    .login-header p {
        font-size: 13px;
    }


    .login-icon {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }
}


@media (max-width: 380px) {

    .guest-page {
        padding-left: 12px;
        padding-right: 12px;
    }


    .guest-card {
        padding:
            30px
            18px
            25px;
    }


    .login-header h1 {
        font-size: 34px;
    }


    .input-wrapper input {
        height: 50px;
    }


    .login-button {
        height: 52px;
    }
}