 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
     
    padding: 0px;
}

/* BODY ANIMATION START */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
  position: relative;
}

/* bubble layer */
body::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;

  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 3px),
                    radial-gradient(circle, rgba(255,255,255,0.1) 3px, transparent 4px),
                    radial-gradient(circle, rgba(255,255,255,0.08) 4px, transparent 5px);

  background-size: 100px 100px, 150px 150px, 200px 200px;

  animation: moveBubbles 25s linear infinite;
  pointer-events: none;  
}

/* second layer */
body::after {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;

  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 2px, transparent 3px),
                    radial-gradient(circle, rgba(255,255,255,0.05) 3px, transparent 4px);

  background-size: 120px 120px, 180px 180px;

  animation: moveBubbles2 40s linear infinite;
  pointer-events: none; /* 👈 FIX */
}

/* animations */
@keyframes moveBubbles {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-200px, -300px); }
}

@keyframes moveBubbles2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(200px, -400px); }
}

/* BODY ANIMATION END */

.container {
    width: 100%;
    max-width: 450px;
}

.container-large {
    max-width: 500px;
}
.card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border: none;
    background: none;
    font-size: 14px;
}

.tab.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    background: white;
}

.tab-content {
    padding: 30px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.otp-section,
.reset-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.otp-section.show,
.reset-section.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.countdown {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

 
.checkbox {
   display: flex;
    align-items: center;
    margin: 15px 0;
    color: #6a6a6a;
    font-size: 14px;
}

.checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.links {
    text-align: center;
    margin: 20px auto;
    padding: 20px 0px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

.links a:hover {
    text-decoration: underline;
}

.domain-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .tab {
        font-size: 12px;
        padding: 12px 8px;
    }
    
    .otp-section,
    .reset-section {
        padding: 15px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .card {
        background: #1e293b;
    }
    
    .header {
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    }
    
    .form-group label {
        color: #e2e8f0;
    }
    
    .input-wrapper input {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .input-wrapper input:focus {
        border-color: #3b82f6;
        background: #0f172a;
    }
    
    .tabs {
        background: #0f172a;
        border-bottom-color: #334155;
    }
    
    .tab {
        color: #94a3b8;
    }
    
    .tab.active {
        color: #3b82f6;
        background: #1e293b;
    }
    
    .otp-section,
    .reset-section {
        background: #0f172a;
    }
    
    .links {
        border-top-color: #334155;
    }
    
    .checkbox label {
        color: #cbd5e1;
    }
}