/* Portal2 login page */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
}

body.login2 {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(160deg, #1d4380 0%, #163465 45%, #0d2144 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login2-logo {
    margin-bottom: 32px;
    text-align: center;
}

.login2-logo img {
    width: 260px;
    max-width: 80vw;
    height: auto;
}

.login2-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login2-card h1 {
    font-size: 20px;
    font-weight: 600;
    color: #163465;
    margin-bottom: 4px;
}

.login2-card .sub {
    font-size: 13px;
    color: #8a94a6;
    margin-bottom: 28px;
}

.login2-error {
    background: #fdecec;
    color: #b02a2a;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login2-field {
    margin-bottom: 18px;
}

.login2-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3d4a5c;
    margin-bottom: 6px;
}

.login2-input {
    position: relative;
}

.login2-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b5;
    font-size: 14px;
    pointer-events: none;
}

.login2-input input {
    width: 100%;
    padding: 12px 44px 12px 40px;
    font-size: 15px;
    color: #1f2a3c;
    background: #f7f9fc;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.login2-input input:focus {
    background: #fff;
    border-color: #6CACE4;
    box-shadow: 0 0 0 3px rgba(108, 172, 228, 0.25);
}

.login2-input .toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #9aa5b5;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}

.login2-input .toggle-pass:hover { color: #163465; }

.login2-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #163465;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.login2-btn:hover { background: #1d4380; }
.login2-btn:active { transform: scale(0.99); }

.login2-foot {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
