* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(330deg, rgba(3, 9, 27, 0.439) 50%, #0e0844 60%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background:rgba(39, 4, 238, 0.692);
    border-radius: 70px;
    border-color: color-mix(in srgb, blue 30%, green 30%);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(148, 16, 16, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.logo-icon.success {
    font-size: 64px;
}

h1 {
    color: #faf6f6;
    font-size: 24px;
    margin-bottom: 5px;
    font-family: 'Dynapuff', cursive;
}

.subtitle {
    color:black;
    font-size: 14px;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    color: #f5f3f3;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: 'Luckiest Guy', cursive;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #070707;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.10s;
    color: #f8f7f7;
    background: #070707;
}

input:focus {
    border-color: #cacbcf;
}

input.error {
    border-color: #e74c3c;
}

input[type="password"] {
    letter-spacing: 2px;
}

.prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #acaaaa;
    font-weight: 600;
}

input[type="tel"] {
    padding-left: 35px;
}

.error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgb(196, 193, 193);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Loading Spinner */
.loading {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Code Inputs */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 5px;
}

.code-inputs input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 0;
}

/* Timer & Resend */
.timer {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.timer span {
    color: #667eea;
    font-weight: 600;
}

.resend {
    text-align: center;
    margin-top: 10px;
}

.resend a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.resend a.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* Switch Auth Link */
.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.switch-auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* Step Animation */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Method Tabs (Login Page) */
.method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.method-form {
    display: none;
}

.method-form.active {
    display: block;
}

/* Verification Cards (Registration) */
.verify-card {
    display: flex;
    align-items: center;
 
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.verify-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.verify-icon {
    font-size: 32px;
    margin-right: 15px;
}

.verify-info {
    flex: 1;
}

.verify-info h3 {
    color: #3a3939;
    font-size: 16px;
    margin-bottom: 4px;
}

.verify-info p {
    color: #888;
    font-size: 13px;
}

.verify-arrow {
    font-size: 20px;
    color: #e5e8f3;
}

/* Dashboard Styles */
.dashboard {
    max-width: 600px;
    margin: 0 auto;
    border: 5px solid transparent; 
    background: linear-gradient(rgb(24, 10, 219), rgba(36, 23, 23)) padding-box, line(135deg, #667eea, #764ba2) border-box;
   /* border-color: rgba(22, 42, 87, 0.4);
    border-radius: 30px*/
    
    
}



.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 22px;
}

.logout-btn {
    width: auto;
    padding: 10px 20px;
    margin: 0;
    font-size: 14px;
}

.dashboard-content {
    display: grid;
    gap: 15px;
}

.card {
    background: #f1f4f7;
    padding: 20px;
    border-radius: 12px;
}

.card h3 {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.card .verified {
    color: #25D366;
}

/* Standard login presentation */
.login-page {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    max-width: 820px;
    padding: 28px;
    animation: cardEntrance 0.8s cubic-bezier(.2,.8,.2,1) both;
    
}

.login-visual {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
    border-radius: 45px;
    background: rgba(7, 7, 7, 0.22);
    overflow: hidden;
}

.login-logo-mark {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 38% 62% 55% 45%;
    color: #faf6f6;
    font-size: 72px;
    font-weight: 800;
    animation: markFloat 4s ease-in-out infinite;
}

.visual-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #faf6f6;
    animation: dotDrift 5s ease-in-out infinite;
}

.dot-one { top: 22%; left: 24%; }
.dot-two { right: 20%; bottom: 26%; animation-delay: -1.5s; }
.dot-three { top: 38%; right: 18%; animation-delay: -3s; }

.login-content {
    align-self: center;
    padding: 18px 12px;

}

.login-heading {
    margin-bottom: 26px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.forgot-link,
.password-toggle {
    border: 0;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    font-weight: 600;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 68px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 12px;
}

.login-submit {
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

#loginError {
    margin: -5px 0 8px;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes markFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes dotDrift {
    0%, 100% { transform: translate(0, 0); opacity: 0.65; }
    50% { transform: translate(12px, -16px); opacity: 1; }
}

@media (max-width: 680px) {
    .login-card {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 45px;
    }

    .login-visual {
        min-height: 150px;
        border-radius: 32px;
    }

    .login-logo-mark {
        width: 82px;
        height: 82px;
        font-size: 44px;
    }

    .login-content {
        padding: 4px;
    }
}