/* Auth Pages Styling - Trading Theme */
:root {
  --primary: #2962ff;
  --primary-dark: #0039cb;
  --secondary: #00c853;
  --secondary-dark: #009624;
  --dark: #121a25;
  --light: #f8f9fa;
  --gold: #ffd700;
  --silver: #c0c0c0;
}

body {
  background: linear-gradient(rgba(18, 26, 37, 0.85), rgba(18, 26, 37, 0.95)), 
              url('../assets/images/trading-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  width: 100%;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.auth-header p {
  color: var(--silver);
  font-size: 0.9rem;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.25);
  color: var(--light);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: #e9ecef;
}

.btn-trading {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-trading:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(41, 98, 255, 0.3);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--silver);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: var(--primary);
}

.alert {
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
}

.trading-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.form-check-label {
  color: var(--silver);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Phone input styling */
.phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.phone-prefix {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  min-width: 80px;
  justify-content: center;
}

.phone-input {
  border-radius: 0 8px 8px 0 !important;
  flex: 1;
}

/* Currency display */
.currency-display {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: bold;
}

/* Select2 customization */
.select2-container--default .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  height: 48px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 48px;
  padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #2962ff;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 576px) {
  .auth-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .phone-input-group {
    flex-direction: column;
  }
  
  .phone-prefix {
    border-radius: 8px 8px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    padding: 10px;
  }
  
  .phone-input {
    border-radius: 0 0 8px 8px !important;
  }
}