* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 50%, #fff3e0 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Background Elements */
.bg-decoration {
    position: fixed;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #004F80, #0073b6);
    top: -160px;
    right: -160px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #FFD166, #ffb938);
    bottom: -120px;
    left: -120px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(0, -60px) rotate(180deg); }
    75% { transform: translate(-30px, -30px) rotate(270deg); }
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 30px 15px;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 79, 128, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

/* Logo and Icon */
.logo-salogin {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, #004F80 0%, #0073b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 79, 128, 0.25);
    animation: pulse 3s ease-in-out infinite;
}

.logo-icon i {
    font-size: 2.2rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Headings */
.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
}

/* Alert */
.alert-custom {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #991b1b;
    font-size: 0.9rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Form Elements */
.form-label-custom {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-control-custom {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #004F80;
    box-shadow: 0 0 0 3px rgba(0, 79, 128, 0.1);
    outline: none;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 0.9rem;
}
.toggle-password:hover {
    color: #004F80;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #004F80 0%, #0073b6 100%);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(0, 79, 128, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 79, 128, 0.35);
}

/* Register Link */
.register-link-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.register-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.register-link {
    color: #004F80;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.register-link:hover {
    color: #0073b6;
}

/* Back to Home Link */
.back-home {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    text-decoration: none;
    color: #004F80;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 79, 128, 0.1);
    transition: all 0.3s ease;
}

.back-home:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 30px rgba(0, 79, 128, 0.15);
    color: #0073b6;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 25px;
        border-radius: 22px;
        max-width: 340px;
    }

    .logo-icon {
        width: 65px;
        height: 65px;
    }

    .logo-icon i {
        font-size: 1.8rem;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .circle-1 {
        width: 300px;
        height: 300px;
        top: -120px;
        right: -120px;
    }

    .circle-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -100px;
    }
}
