/* Professional Banking Registration Page Styles */

:root {
  --primary-color: #003d82;
  --primary-dark: #002855;
  --primary-light: #0056b3;
  --secondary-color: #00a859;
  --accent-color: #ff6b00;
  --background: #f5f7fa;
  --card-background: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Registration Container */
.register-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.register-wrapper {
  background: var(--card-background);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: auto;
}

/* Header Section */
.register-header {
  background: var(--primary-color);
  padding: 50px;
  text-align: center;
  color: white;
  position: relative;
}

.register-logo {
  margin-bottom: 20px;
}

.register-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.register-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.register-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Form Section */
.register-form-section {
  padding: 50px;
}

.form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition);
}

.step-number.active {
  background: var(--primary-color);
  color: white;
}

.step-number.completed {
  background: var(--secondary-color);
  color: white;
}

.step-name {
  font-weight: 500;
  color: var(--text-secondary);
  display: none;
}

@media (min-width: 768px) {
  .step-name {
    display: block;
  }
}

.step-connector {
  width: 30px;
  height: 2px;
  background: var(--border-color);
  margin: 0 10px;
}

/* Form Groups */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-label small {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.form-input::placeholder {
  color: #adb5bd;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Profile Picture Upload */
.profile-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: var(--background);
  cursor: pointer;
  transition: var(--transition);
}

.profile-upload:hover {
  border-color: var(--primary-color);
  background: #f0f4f8;
}

.profile-upload img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  display: none;
}

.profile-upload.has-image img {
  display: block;
}

.profile-upload-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-secondary);
}

.profile-upload.has-image .profile-upload-icon {
  display: none;
}

.profile-upload input[type="file"] {
  display: none;
}

.profile-upload-text {
  font-weight: 600;
  color: var(--text-primary);
}

.profile-upload-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 15px;
}

.btn {
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f5f5f5;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: #e8e8e8;
  border-color: var(--text-secondary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Alert Messages */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert i {
  font-size: 1.1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #fff2f2;
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Footer */
.register-footer {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.register-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.register-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
  .register-header {
    padding: 40px 30px;
  }

  .register-header h1 {
    font-size: 2rem;
  }

  .register-form-section {
    padding: 40px 30px;
  }

  .form-steps {
    flex-wrap: wrap;
    gap: 10px;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 576px) {
  body {
    padding: 10px;
  }

  .register-header {
    padding: 30px 20px;
  }

  .register-header h1 {
    font-size: 1.75rem;
  }

  .register-form-section {
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-navigation {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Loading State */
.btn:disabled,
.loading {
  opacity: 0.6;
  pointer-events: none;
}

