* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

:root {
  --primary: #0c4a6e;
  --primary-light: #0369a1;
  --primary-dark: #075985;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray: #f8fafc;
  --gray-dark: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
}

body.yf-register-body {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,.16);
  position: relative;
  z-index: 1;
}

.login-form {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header h1 {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-light);
  font-size: 15px;
}

/* alerts */
.yf-alert {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 15px;
}
.yf-alert i { font-size: 1.05rem; }
.yf-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}
.yf-alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
}
.yf-alert-login {
  animation: shake .35s ease;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 15px 45px 15px 15px;
  border: 2px solid var(--gray-dark);
  border-radius: 10px;
  font-size: 16px;
  transition: .3s;
  background: var(--gray);
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 74, 110, .1);
}

.form-options {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-light);
  font-size: .9rem;
}
.remember-me input { accent-color: var(--primary); }

.btn-login,
#registerButton {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: .3s;
  display: block;
}
.btn-login:hover,
#registerButton:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(12, 74, 110, .3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.divider span { color: var(--text-light); font-size: .85rem; }

.signup-link {
  text-align: center;
}
.signup-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.signup-link a:hover { text-decoration: underline; }

.login-image {
  flex: 1;
  background: linear-gradient(rgba(12, 74, 110, .7), rgba(12, 74, 110, .7)),
    url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  gap: 10px;
}
.login-image h2 { font-size: 30px; }
.login-image p { max-width: 380px; line-height: 1.6; }

.floating-elements {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.floating-element {
  position: absolute;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 768px) {
  .login-container { flex-direction: column; }
  .login-image { display: none; }
  .login-form { padding: 35px 25px; }
}
