:root {
    --primary: #2196f3;
    --primary-hover: #1976d2;
    --accent: #ff6b6b;
    --bg-light: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #333;
    --text-muted: #666;
    --radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Sans-Serif;
    margin: 0;
    padding: 0;
}

body {
    background: #1b263b;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
   
}
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/bharat-sports-logo-lg.png");
    background-repeat: repeat;
    background-size: 120px;
    background-position: 0 0;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none; /* allows clicking through overlay */
    border-radius: var(--radius);
}
/* Container */

.login-container, .register-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease;
} 

.login-container::before,
.register-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/bharat-sports-logo-lg.png");
    background-repeat: repeat;
    background-size: 120px;
    background-position: 0 0;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none; /* allows clicking through overlay */
    border-radius: var(--radius);
}

/* Ensure container content stays above overlay */
.login-container, .register-container {
    position: relative;
    z-index: 1;
}


/* Step Indicator */
.step-indicator-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--primary);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}


/* Header */
.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header img {
    width: 150px;
    margin-bottom: 10px;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(33,150,243,0.15);
}

.form-group input[type="file"] {
    padding: 8px;
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.gender-option {
    flex: 1;
    background-color: #f1f3f6;
    color: var(--text-dark);
    padding: 12px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
    user-select: none;
}

.gender-option.selected {
    border: 2px solid var(--accent);
    background-color: var(--accent);
    color: white;
}

.gender-option.male.selected {
    background-color: var(--primary);
}

.gender-option.female.selected {
    background-color: #e84393;
}

.gender-option.other.selected {
    background-color: #ffa502;
}

.gender-option:hover {
    background-color: #e4e7ec;
}



/* Buttons */

.form-navigation { display: flex; justify-content: space-between; margin-top: 20px; }

#nextBtn, #prevBtn {
    width: 40%;
    padding: 10px 18px; 
    background: var(--primary);
    border: none; 
    border-radius: var(--radius); 
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    
}


#submitBtn {
    width: 40%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

#nextBtn, #prevBtn, #submitBtn:hover {
    background: var(--primary-hover);
}

/* Toasts */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.custom-toast.success {
    background-color: #28a745;
}

.custom-toast.error {
    background-color: #dc3545;
}

.custom-toast.show {
    opacity: 1;
    bottom: 50px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .register-container, 
    .login-container {
        padding: 20px;
    }

    .form-header img {
        width: 120px;
    }
}


.locked-field {
  opacity: 0.6;
  pointer-events: none;
}
.locked-field::placeholder {
  color: #aaa;
}


.login-topbar {
  background: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  justify-content: center;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.login-topbar .logo img {
    height: 40px;
 font-size: 1.2rem;
 font-weight: bold;
 color: #0078d4;
}
