/* =========================================================
   INTERN SIGN UP
   MSU INTERNSHIP MONITORING SYSTEM THEME
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px 15px;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(128, 0, 0, 0.06) 0,
            rgba(128, 0, 0, 0.06) 90px,
            transparent 91px
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(128, 0, 0, 0.05) 0,
            rgba(128, 0, 0, 0.05) 120px,
            transparent 121px
        ),
        linear-gradient(
            135deg,
            #f7f8fa,
            #f1f2f5
        );

    color: #1d1d1f;
}

.signup-box {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 28px 30px 25px;

    border-radius: 18px;

    border: 1px solid rgba(128, 0, 0, 0.12);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);

    position: relative;
    overflow: hidden;
}

.signup-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: #800000;

    border-radius: 18px 18px 0 0;
}

.logo {
    width: 78px;
    height: 78px;

    display: block;

    margin: 0 auto 13px;

    object-fit: contain;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;

    color: #800000;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 5px;
}

h2 {
    text-align: center;

    color: #666666;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    margin-bottom: 18px;
}

label {
    display: block;

    color: #333333;

    font-size: 12px;
    font-weight: 600;

    margin-top: 11px;
}

input {
    width: 100%;

    height: 42px;

    padding: 9px 12px;

    margin-top: 5px;

    background: #ffffff;

    color: #222222;

    border: 1px solid #d5d7db;

    border-radius: 8px;

    outline: none;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input::placeholder {
    color: #999999;
}

input:focus {
    border-color: #800000;

    box-shadow:
        0 0 0 3px rgba(128, 0, 0, 0.08);
}

button {
    width: 100%;

    height: 43px;

    margin-top: 20px;

    background: #800000;

    color: #ffffff;

    border: none;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background: #680000;

    box-shadow:
        0 5px 12px rgba(128, 0, 0, 0.20);
}

button:active {
    transform: translateY(1px);
}

p {
    text-align: center;

    color: #666666;

    margin-top: 15px;

    font-size: 12px;

    line-height: 1.5;
}

a {
    color: #800000;

    text-decoration: none;

    font-weight: 600;

    font-size: 12px;
}

a:hover {
    color: #680000;

    text-decoration: underline;
}

@media (max-width: 430px) {

    body {
        padding: 15px;
    }

    .signup-box {
        padding: 27px 24px 23px;

        border-radius: 17px;
    }

    .logo {
        width: 72px;
        height: 72px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 14px;
    }
}

@media (max-width: 350px) {

    .signup-box {
        padding: 25px 20px 21px;
    }

    .logo {
        width: 68px;
        height: 68px;
    }

    h1 {
        font-size: 19px;
    }

    h2 {
        font-size: 13px;
    }

    input {
        height: 40px;
        font-size: 12px;
    }

    button {
        height: 41px;
        font-size: 13px;
    }
}


/* =========================================================
   COURSE + ORGANIZATION SELECTOR AND UPDATED FORM UI
========================================================= */

.signup-box {
    max-width: 500px;
    padding: 30px 32px 27px;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 8px;
    color: #8F0B0B;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.signup-box .form-intro {
    margin: 0 0 18px;
    color: #737373;
    font-size: 12px;
    line-height: 1.55;
}

.school-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin: 0 0 17px;
    background: #FFFDE3;
    border: 1px solid #EEE8C9;
    border-radius: 12px;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 10px;
    background: #F7E4E4;
    color: #8F0B0B;
}

.school-notice > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.school-notice small {
    color: #737373;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.school-notice strong {
    color: #182334;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.form-group {
    margin-top: 13px;
}

.form-group label {
    margin: 0 0 6px;
    color: #273244;
    font-size: 12px;
    font-weight: 700;
}

.input-wrap,
.select-wrap {
    position: relative;
    width: 100%;
}

.input-wrap .field-icon,
.select-wrap .field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #8F0B0B;
    font-size: 13px;
    pointer-events: none;
}

.signup-box .input-wrap input {
    margin-top: 0;
    padding: 10px 12px 10px 38px;
    height: 45px;
    border: 1px solid #D9DDE4;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 13px;
}

.signup-box .input-wrap input:focus,
.signup-box .select-wrap select:focus {
    outline: none;
    border-color: #8F0B0B;
    box-shadow: 0 0 0 3px rgba(143, 11, 11, .09);
}

.signup-box .select-wrap select {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 38px 11px 39px;
    border: 1px solid #D9DDE4;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #273244;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.signup-box .select-wrap::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #8F0B0B;
    border-bottom: 2px solid #8F0B0B;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.signup-box .select-wrap select:disabled {
    cursor: not-allowed;
    background: #F3F4F6;
    color: #8B9099;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: #737373;
    font-size: 10px;
    line-height: 1.45;
}

.catalog-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 13px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.5;
}

.catalog-message i {
    margin-top: 2px;
    flex: 0 0 auto;
}

.catalog-message.error {
    color: #8F1717;
    background: #FCEAEA;
    border: 1px solid #EBCBCB;
}

.signup-box .register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 47px;
    margin-top: 23px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8F0B0B, #680707);
    box-shadow: 0 7px 16px rgba(143, 11, 11, .16);
}

.signup-box .register-button:hover {
    background: linear-gradient(135deg, #A51B1B, #680707);
    box-shadow: 0 9px 19px rgba(143, 11, 11, .22);
}

.signup-box .register-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

.signup-box .login-prompt {
    margin-top: 18px;
    font-size: 12px;
}

.result-box {
    text-align: center;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 5px auto 15px;
    border-radius: 50%;
    background: #F7E4E4;
    color: #8F0B0B;
    font-size: 22px;
}

.result-message {
    margin: 12px 0 18px;
    color: #555B66;
    font-size: 13px;
    line-height: 1.6;
}

.back-link,
.success-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 18px;
    border-radius: 9px;
    background: #8F0B0B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.back-link:hover,
.success-link:hover {
    background: #680707;
    color: #FFFFFF;
    text-decoration: none;
}

@media (max-width: 600px) {

    body {
        align-items: flex-start;
        padding: 18px 12px;
    }

    .signup-box {
        max-width: 500px;
        padding: 27px 21px 23px;
        border-radius: 15px;
    }

    .logo {
        width: 68px;
        height: 68px;
    }

    h1 {
        font-size: 19px;
    }

    .signup-box .select-wrap select {
        min-height: 46px;
        font-size: 12px;
    }
}

@media (max-width: 350px) {

    .signup-box {
        padding: 23px 16px 20px;
    }

    .school-notice {
        padding: 11px;
        gap: 9px;
    }

    .school-notice strong {
        font-size: 11px;
    }
}