:root {
    --primary-blue: #5D9CEC;
    --primary-dark: #4A89DC;
    --accent-yellow: #FFCE54;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --radius-lg: 16px;
    --shadow-soft: 0 18px 45px rgba(44, 95, 184, 0.18);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #5D9CEC, #4A89DC 55%, #2C5FB8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: floatBlob 9s ease-in-out infinite;
}

body::before {
    width: 320px;
    height: 320px;
    top: -90px;
    left: -90px;
}

body::after {
    width: 240px;
    height: 240px;
    bottom: -70px;
    right: -60px;
    animation-delay: 1.5s;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(20px) scale(1.05);
    }
}

.login-container {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    animation: loginIn 0.6s var(--ease-smooth) both;
}

@keyframes loginIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header img {
    width: 80px;
    margin-bottom: 15px;
}

.login-header h3 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.login-header p {
    margin: 0 0 30px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab8c2;
    transition: color 0.25s ease;
}

.input-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.15);
}

.input-icon input:focus + i,
.input-icon:focus-within i {
    color: var(--primary-blue);
}

.password-field input {
    padding-right: 52px;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #aab8c2;
    transition: color 0.25s ease;
}

.toggle-pass:hover {
    color: var(--primary-blue);
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s var(--ease-smooth), box-shadow 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(74, 137, 220, 0.35);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-msg {
    margin-top: 15px;
    color: #e74c3c;
    font-size: 0.9rem;
    display: none;
}