body.signin-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    background-color: #1a1a1a;
    background-image: url('../images/1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

body.signin-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 22, 0.42);
    pointer-events: none;
    z-index: 0;
}

body.signin-body .min-vh-100 {
    min-height: 100vh !important;
    align-items: stretch !important;
    position: relative;
    z-index: 1;
}

body.signin-body .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

body.signin-body .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1.25rem;
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    background: transparent;
    border: none;
    pointer-events: none;
    z-index: 2;
}

.signin-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2.5rem 1.25rem 4rem;
}

.signin-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 2.75rem 2.25rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.signin-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-brand img {
    max-width: 168px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.92;
}

.signin-brand h1 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6f6b65;
}

.signin-messages .alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 0.65rem;
}

.signin-form {
    display: grid;
    gap: 1.35rem;
}

.signin-field {
    position: relative;
}

.signin-field input {
    width: 100%;
    padding: 1.05rem 0 0.55rem;
    border: none;
    border-bottom: 1px solid #d8d4cd;
    border-radius: 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signin-field input:focus {
    border-bottom-color: #1a1a1a;
    box-shadow: 0 1px 0 0 #1a1a1a;
}

.signin-field label {
    position: absolute;
    left: 0;
    top: 0.95rem;
    font-size: 0.95rem;
    color: #8a857d;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
    transform-origin: left top;
}

.signin-field input:focus + label,
.signin-field input:not(:placeholder-shown) + label {
    transform: translateY(-1.15rem) scale(0.78);
    color: #5c5852;
}

.signin-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.signin-submit:hover {
    background: #2f2f2f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.14);
}

.signin-submit:active {
    transform: translateY(0);
}

.signin-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
}

.signin-footer-links a {
    color: #5c5852;
    text-decoration: none;
    transition: color 0.2s ease;
}

.signin-footer-links a:hover {
    color: #1a1a1a;
}

.signin-portals {
    margin-top: 1.75rem;
    text-align: center;
}

.signin-portals-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a8a399;
}

.signin-portals-list {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.signin-portals-list a {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    color: #5c5852;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.signin-portals-list a:hover {
    border-color: rgba(0, 0, 0, 0.18);
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    .signin-card {
        padding: 2.25rem 1.35rem 1.75rem;
        border-radius: 1rem;
    }
}
