/* ============================================================
   SIHM Student Login — Login Page Styles
   ============================================================ */

.sihm-login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    font-family: "Outfit", sans-serif;
    background: #f8f6f2;
}

.sihm-login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11, 29, 58, 0.12), 0 4px 16px rgba(11, 29, 58, 0.06);
    position: relative;
}

.sihm-login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e8600a, #c8981a, #e8600a);
    background-size: 200%;
    animation: sihmGrad 4s linear infinite;
}

@keyframes sihmGrad {
    0%   { background-position: 0%; }
    100% { background-position: 200%; }
}

/* Header */
.sihm-login-top {
    background: linear-gradient(135deg, #0b1d3a 0%, #1a3260 100%);
    padding: 36px 32px 28px;
    text-align: center;
}

.sihm-login-logo {
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    overflow: hidden;
}

.sihm-login-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.sihm-login-institute {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffa040;
    font-weight: 500;
    margin-bottom: 8px;
}

.sihm-login-heading {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.sihm-login-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

/* Form */
.sihm-login-form {
    padding: 32px;
}

.sihm-lf-group { margin-bottom: 18px; }

.sihm-lf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4a5568;
    margin-bottom: 7px;
}

.sihm-lf-input-wrap { position: relative; }

.sihm-lf-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

.sihm-lf-input {
    width: 100% !important;
    padding: 13px 14px 13px 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: "Outfit", sans-serif;
    font-size: 14px !important;
    color: #1a1a2e !important;
    outline: none;
    background: #fafbff !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.sihm-lf-input::placeholder { color: #b0bec5; }

.sihm-lf-input:focus {
    border-color: #e8600a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 96, 10, 0.08);
}

/* Error */
.sihm-lf-error {
    background: #fff5f5;
    border: 1.5px solid #fed7d7;
    color: #c53030;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Button */
.sihm-lf-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e8600a, #f07030);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(232, 96, 10, 0.3);
    margin-bottom: 16px;
}

.sihm-lf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 96, 10, 0.4);
}

.sihm-lf-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.sihm-lf-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sihm-lf-arrow {
    width: 22px; height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

.sihm-lf-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sihmSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes sihmSpin { to { transform: rotate(360deg); } }

.sihm-lf-hint {
    font-size: 12px;
    color: #a0aec0;
    text-align: center;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

/* Not logged in */
.sihm-dash-not-logged {
    text-align: center;
    padding: 48px 24px;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    color: #4a5568;
}

.sihm-dash-not-logged a {
    color: #e8600a;
    font-weight: 700;
    text-decoration: none;
}

/* Mobile */
@media ( max-width: 480px ) {
    .sihm-login-top { padding: 28px 20px 22px; }
    .sihm-login-form { padding: 24px 20px; }
    .sihm-login-heading { font-size: 24px; }
}
