/* Login page styles */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f4f6f9;
}

.login-left {
    flex: 0 0 45%;
    max-width: 520px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
    padding: 2rem 0;
}

.login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.18);
    overflow: hidden;
    padding: 4px;
}

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a2b3c;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.92rem;
}

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

.login-input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 2;
}

.login-input-group .form-control {
    padding-left: 2.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 48px;
    font-size: 0.92rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-group .form-control:focus {
    border-color: var(--agecso-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.08);
    background: #fff;
}

.login-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0f4c81, #1a6cb8);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.25);
}

.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.login-extras a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.login-extras a:hover {
    color: var(--agecso-blue);
}

.login-back {
    text-align: center;
    margin-top: 1.5rem;
}

.login-back a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.login-back a:hover {
    color: var(--agecso-blue);
}

/* Right side — organic wave/blob background */
.login-right {
    flex: 1;
    background: #0f4c81;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 120%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(210, 230, 255, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 75% 20%, rgba(230, 245, 230, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 80% at 50% 80%, rgba(180, 210, 240, 0.3) 0%, transparent 50%);
    filter: blur(60px);
}

.login-right::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 70%;
    height: 80%;
    background:
        radial-gradient(ellipse 60% 70% at 60% 40%, rgba(255, 235, 200, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 30% 70%, rgba(200, 230, 210, 0.25) 0%, transparent 50%);
    filter: blur(50px);
}

.login-welcome {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.login-welcome h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.login-welcome p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 360px;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .login-page {
        justify-content: center;
        background: linear-gradient(135deg, #0f4c81 0%, #17324d 100%);
    }
    .login-left {
        flex: 0 0 auto;
        max-width: 400px;
        border-radius: 20px;
        background: transparent;
        padding: 2rem;
    }
    .login-form-wrap {
        border-radius: 20px;
    }
    .login-right {
        display: none;
    }
}
