:root {
  --primary: #04EFD9;
  --primary-dark: #03c9b5;
  --background: #111418;
  --card-bg: #1a1f24;
  --text-light: #f8f9fa;
  --text-muted: #adb5bd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  background: linear-gradient(145deg, #0f1317, #151a20);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-light);
  padding: 1rem;
}

/* —— Animations —— */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.database-container {
  display: flex;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border-radius: 16px;
  overflow: hidden;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.database-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(4, 239, 217, 0.1), rgba(3, 201, 181, 0.2));
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.database-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(4, 239, 217, 0.05) 0%, transparent 70%);
  z-index: 1;
  animation: rotation 60s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px rgba(4, 239, 217, 0.4);
  background: rgba(10, 14, 18, 0.7);
  border: 2px solid rgba(4, 239, 217, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.brand-name span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features {
  text-align: left;
  max-width: 350px;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.database-right {
  flex: 1;
  background: var(--card-bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.05);
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.database-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.database-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.database-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.database-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(10, 14, 18, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2304EFD9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

.form-select:focus {
  border-color: var(--primary);
  background: rgba(10, 14, 18, 0.9);
  box-shadow: 0 0 0 4px rgba(4, 239, 217, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  z-index: 10;
  opacity: 0.8;
}

.btn-continue {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(4, 239, 217, 0.2);
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 239, 217, 0.4);
}

.btn-continue:active {
  transform: scale(0.98) translateY(0);
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .database-container {
    flex-direction: column;
    max-width: 500px;
  }
  
  .database-left {
    padding: 2rem 1.5rem;
  }
  
  .database-right {
    padding: 2rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .brand-name {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .database-container {
    box-shadow: none;
    border-radius: 0;
  }
  
  body {
    padding: 1rem;
    align-items: center;
  }
  
  .database-left, .database-right {
    padding: 2rem 1.25rem;
  }
  
  .features {
    display: none;
  }
}