body.login-page {
    background: linear-gradient(90deg, #18a9a7 50%, #f8af25 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    position: relative;
}

body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseBackground 8s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.login-box {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: none;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card-header {
    background: linear-gradient(45deg, #18a9a7, #f8af25);
    padding: 25px;
    text-align: center;
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.login-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: shine 5s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.login-card-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
    animation: bounce 2s infinite ease-in-out;
}

.login-card-header img:hover {
    transform: rotate(360deg) scale(1.15);
    animation-play-state: paused;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-card-header h3 {
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-card-body {
    padding: 40px 30px;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.form-control {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding: 12px 40px 12px 15px;
    transition: all 0.4s ease;
    color: #333;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.form-control:focus {
    box-shadow: none;
    border-color: #18a9a7;
    background: rgba(24, 169, 167, 0.1);
    transform: translateY(-2px);
}

.form-control + .input-group-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #18a9a7;
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-control:focus + .input-group-text {
    color: #bb2a32;
    transform: translateY(-50%) scale(1.2);
}

.is-invalid {
    border-color: #bb2a32 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-feedback {
    font-size: 0.9rem;
    color: #bb2a32;
    position: absolute;
    bottom: -20px;
    left: 0;
    animation: fadeInError 0.3s ease-in;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    background: linear-gradient(45deg, #18a9a7, #f8af25);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    width: 100%;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #bb2a32, #8f2028);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(187, 42, 50, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-3px) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-3px) scale(1); }
}

hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 25px 0;
    animation: slideInHr 0.5s ease-out;
}

@keyframes slideInHr {
    from { width: 0; }
    to { width: 100%; }
}

.create-account-link {
    text-align: center;
    margin-top: 15px;
}

.create-account-link a {
    color: #18a9a7;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.create-account-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #bb2a32;
    transition: width 0.3s ease;
}

.create-account-link a:hover::after {
    width: 100%;
}

.create-account-link a:hover {
    color: #bb2a32;
}

@media (max-width: 576px) {
    .login-box {
        padding: 15px;
    }
    
    .card {
        margin: 0 10px;
    }

    .login-card-body {
        padding: 25px 15px;
    }
}