/* Global Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
}

.login-container h1 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.login-container p {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.logo-group img {
    max-height: 50px;
    height: auto;
    max-width: 50%;
    object-fit: contain;
    flex: 1 1 auto;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-group input {
    width: 100%;
    padding: 10px 40px 10px 44px; /* left for lock/user, right for eye icon */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}

.input-group input:focus {
    border-color: #2563eb;
}

/* Left icon (user or lock) */
.input-group .input-icon-left {
    left: 14px;
    pointer-events: none;
}

/* Right icon (eye toggle) */
.input-group .toggle-password {
    right: 12px;
    cursor: pointer;
    background: white;
    z-index: 10;
    padding: 4px;
    line-height: 1;
    pointer-events: auto;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    background: white;
    z-index: 10;
    padding: 4px;
    line-height: 1;
    pointer-events: auto;
}

.alert {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 10px 15px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-submit {
    width: 100%;
    background-color: #2563eb;
    color: #fff;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

.text-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.text-link:hover {
    color: #1d4ed8;
}

@media (max-width: 360px) {
    .logo-group img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem 1rem;
    }
}