* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    user-select: none;
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

.auth-logo {
    width: 120px;
    margin-bottom: 30px;
    border-radius: 20%;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Improved Remember Me styling */
.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.remember-me label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* Custom checkbox */
.remember-me label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Checkbox checked state */
.remember-me input:checked + label:before {
    background-color: #3498db;
    border-color: #3498db;
}

/* Checkmark */
.remember-me label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.remember-me input:checked + label:after {
    opacity: 1;
}

/* Hover effect */
.remember-me:hover label:before {
    border-color: #3498db;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: #2980b9;
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #3498db;
}

.auth-form {
    position: absolute;
    width: 100%;
    max-width: 400px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    visibility: hidden;
    overflow-y: auto;
    max-height: 80vh;
    left: 0;
}

.auth-form.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.auth-forms {
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    min-height: 400px;
}

.error-message {
    background-color: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    text-align: center;
    width: 100%;
    max-width: 400px;
    line-height: 1.5;
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.weak { background-color: #ff4444; }
.medium { background-color: #ffbb33; }
.strong { background-color: #00C851; }

.welcome-message {
    text-align: center;
    margin-bottom: 25px;    
    color: #666;
}

.welcome-message p {
    font-size: 18px;
    margin-bottom: 5px;
}

.welcome-message .sub-text {
    font-size: 14px;
    color: #666;
}

.form-group input:focus {
    border-color: #3498db;
}

.form-group input:invalid {
    border-color: #ddd;
    box-shadow: none;
}

.form-group input:invalid:focus {
    border-color: #3498db;
}

.form-group input.valid {
    border-color: #2ecc71;
}

.form-group input.invalid {
    border-color: #e74c3c;
}

.error-link {
    color: #2980b9;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
}

.error-link:hover {
    color: #3498db;
}

@media (max-width: 480px) {
    .auth-form {
        padding: 20px;
    }
    
    .tab-btn {
        padding: 10px 20px;
    }
    
    .remember-me {
        margin: 10px 0;
    }
}

/* Modern realistic black eye icon for password visibility toggle */
.password-container {
    position: relative;
    width: 100%;
  }

/* Password container */
.password-container {
    position: relative;
    width: 100%;
  }
  
  /* Toggle button */
  .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  
  /* SVG icon styling */
  .password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: absolute;
    transition: all 0.3s ease;
  }
  
  /* Eye open animation */
  .eye-open {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Eye closed animation */
  .eye-closed {
    opacity: 0;
    transform: scale(0.8);
  }
  
  /* When password is visible */
  .password-toggle.show-password .eye-open {
    opacity: 0;
    transform: scale(0.8);
  }
  
  .password-toggle.show-password .eye-closed {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Character scramble animation styles */
  .scramble-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
    padding: inherit;
    pointer-events: none;
  }
  
  /* Original input should be visible when not showing scrambled text */
  .password-container.scrambling input {
    color: transparent;
  }


/*
VERIFICATION CODE STEPS  
*/

/* Step indicators */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
    font-weight: bold;
}

.step.active .step-number {
    background: #3498db;
}

.step.completed .step-number {
    background: #2ecc71;
}

.step-title {
    font-size: 12px;
    color: #7f8c8d;
}

.step.active .step-title {
    color: #3498db;
    font-weight: bold;
}

.step.completed .step-title {
    color: #2ecc71;
}

.step-line {
    position: absolute;
    top: 15px;
    height: 2px;
    background: #ddd;
    width: 100%;
    left: 50%;
    z-index: -1;
}

.step:last-child .step-line {
    display: none;
}

.step.completed .step-line {
    background: #2ecc71;
}

/* Verification code inputs */
.verification-code {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.verification-code input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.timer {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.resend {
    text-align: center;
    margin-top: 15px;
}

.resend a {
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
}

.resend a:hover {
    text-decoration: underline;
}

/* Input validation styles */
input.checking {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%233498db" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>') no-repeat right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Loading indicator for buttons */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add this to your sign-in.css file */
.form-group input.invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 1px #e74c3c;
    animation: shake 0.5s;
}

.form-group input.invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

.error-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
}

.error-link:hover {
    color: #2980b9;
}

/* Shake animation for invalid fields */
@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

