@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hall.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
}

.login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav {
    width: 100%;
    margin-bottom: 1.5rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #023e8a;
}

.welcome-header {
    text-align: center;
    margin-bottom: 1.8rem;
    width: 100%;
}

.welcome-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.welcome-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Alert Error Styles */
.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border: 1px solid #fee2e2;
    font-size: 0.85rem;
    width: 100%;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-group label {
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-field-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.input-field-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.input-field-wrapper input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #023e8a;
    box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.08);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.password-label .forgot-password {
    color: #023e8a;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.password-label .forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: #023e8a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #0077b6;
}

.submit-btn:active {
    transform: scale(0.98);
}

.portal-footer {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.portal-footer p {
    font-size: 0.75rem;
    color: #94a3b8;
}

@media screen and (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }
}