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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.floating-shapes {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; animation-delay: 0s; }
.shape:nth-child(2) { width: 60px; height: 60px; top: 60%; right: 10%; animation-delay: 2s; }
.shape:nth-child(3) { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    animation: slideInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
    margin-bottom: 0.5rem;
    text-align: center;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

.auth-header p { 
    color: #666; 
    font-size: 1.1rem; 
    text-align: center; 
    margin-bottom: 2rem; 
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: white;
}

.form-group input.error { 
    border-color: #ff4757; 
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2); 
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 3rem;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -0.8rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #667eea;
    background: white;
    padding: 0 0.5rem;
    border-radius: 10px;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    background: #e0e0e0;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak { background: #ff4757; width: 33%; }
.strength-medium { background: #ffa502; width: 66%; }
.strength-strong { background: #2ed573; width: 100%; }

.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show { display: block; }

.forgot-link {
    display: block;
    text-align: right;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.forgot-link:hover { 
    color: #764ba2; 
    text-decoration: underline; 
}

.auth-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.auth-btn:disabled { 
    opacity: 0.7; 
    cursor: not-allowed; 
    transform: none; 
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.auth-btn:hover .btn-glow { left: 100%; }

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

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

.success-message {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: white;
    padding: 1.2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 1.5rem;
    animation: bounceIn 0.6s ease;
    display: none;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* OTP Styles */
.otp-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.otp-input.error { border-color: #ff4757; }

/* Account Type Styles */
.account-type-page .auth-container { padding: 4rem 2rem; }
.account-type-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.account-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.account-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.account-card:hover::before { opacity: 0.05; }

.account-card.selected {
    border-color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.account-card i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.account-card.selected i {
    color: white;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.account-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.account-card p {
    color: #666;
    line-height: 1.6;
}

.continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .otp-inputs { gap: 0.5rem; }
    .otp-input { width: 50px; height: 50px; font-size: 1.2rem; }
    .account-cards { grid-template-columns: 1fr; }
    .auth-card, .account-type-card { margin: 1rem; padding: 2rem 1.5rem; }
}
/* Add these styles to your existing style.css */

/* Account Type Selector */
.account-type-selector {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.account-type-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.account-type-options {
    display: flex;
    gap: 1rem;
}

.account-type-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.account-type-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.account-type-option input[type="radio"] {
    display: none;
}

.account-type-option input[type="radio"]:checked + i + span {
    color: var(--primary-color);
}

.account-type-option input[type="radio"]:checked ~ * {
    color: var(--primary-color);
}

.account-type-option input[type="radio"]:checked {
    background-color: var(--primary-color);
}

.account-type-option i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.account-type-option span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.account-type-option input[type="radio"]:checked + i {
    color: var(--primary-color);
}

/* Seller Register Specific Styles */
.seller-register .auth-card {
    max-width: 500px;
}

.seller-benefits {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.seller-benefits h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-benefits ul {
    list-style: none;
    padding: 0;
}

.seller-benefits li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-benefits li i {
    color: #4cc9f0;
}

.seller-btn {
    background: linear-gradient(135deg, var(--primary-color), #3a0ca3) !important;
}

.terms-agreement {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.terms-agreement label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.terms-agreement a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Seller Register Link */
.seller-register-link {
    display: block;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    text-align: center;
    transition: all 0.3s;
}

.seller-register-link:hover {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(58, 12, 163, 0.2));
    transform: translateY(-2px);
}

.seller-register-link i {
    margin-right: 8px;
}

/* Form textarea */
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.strength-weak {
    width: 33% !important;
    background: #f72585;
}

.strength-medium {
    width: 66% !important;
    background: #f8961e;
}

.strength-strong {
    width: 100% !important;
    background: #4cc9f0;
}
