/* Authentication pages styles */

/* Auth body */
.auth-body {
    background: linear-gradient(135deg, #000503 0%, #0e0e0e 50%, #000503 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background animation */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 232, 137, 0.1), rgba(6, 117, 73, 0.05));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Auth container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 40px);
}

/* Auth card */
.auth-card {
    background: linear-gradient(135deg, #0e0e0e 0%, #010101 100%);
    border: 1px solid rgba(0, 232, 137, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e889, transparent);
}

/* Auth header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo .logo-icon {
    font-size: 32px;
}

.auth-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00e889, #067549);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-header p {
    color: #9ca3af;
    font-size: 16px;
}

/* Auth form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00e889;
    background: rgba(0, 232, 137, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 232, 137, 0.1);
}

.input-wrapper input::placeholder {
    color: #6b7280;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00e889;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Password strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #10b981;
}

.strength-fill.strong {
    width: 100%;
    background: #00e889;
}

.strength-text {
    font-size: 12px;
    color: #9ca3af;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #d1d5db;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #00e889, #067549);
    border-color: #00e889;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #00e889;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #067549;
}

/* Auth buttons */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
	width: 100%;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #00e889, #067549);
    color: #ffffff;
}

.auth-btn.primary:hover {
    background: linear-gradient(135deg, #067549, #00e889);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 232, 137, 0.3);
}

.auth-btn.secondary {
    background: transparent;
    color: #00e889;
    border: 2px solid #00e889;
}

.auth-btn.secondary:hover {
    background: rgba(0, 232, 137, 0.1);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    color: #9ca3af;
    font-size: 14px;
}

/* Social login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: #9ca3af;
    font-size: 14px;
}

.auth-footer a {
    color: #00e889;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #067549;
}

/* Features showcase */
.features-showcase,
.benefits-showcase,
.security-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 300px;
}

.feature-item,
.benefit-item,
.security-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover,
.benefit-item:hover,
.security-item:hover {
    background: rgba(0, 232, 137, 0.05);
    border-color: rgba(0, 232, 137, 0.1);
    transform: translateY(-4px);
}

.feature-icon,
.benefit-icon,
.security-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-item h3,
.benefit-item h3,
.security-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-item p,
.benefit-item p,
.security-item p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
}

/* Reset steps */
.reset-step {
    display: none;
}

.reset-step.active {
    display: block;
}

/* Verification info */
.verification-info {
    text-align: center;
    margin-bottom: 32px;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.verification-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.verification-info p {
    color: #9ca3af;
    font-size: 14px;
}

/* Verification input */
.verification-input {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #00e889;
    background: rgba(0, 232, 137, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 232, 137, 0.1);
}

/* Resend section */
.resend-section {
    text-align: center;
    margin: 16px 0;
}

.resend-section p {
    color: #9ca3af;
    font-size: 14px;
}

.resend-btn {
    background: none;
    border: none;
    color: #00e889;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

.resend-btn:hover {
    color: #067549;
}

.resend-btn:disabled {
    color: #6b7280;
    cursor: not-allowed;
    text-decoration: none;
}

.countdown {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.success-message p {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Error states */
.input-wrapper.error input {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading state */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
        min-height: auto;
    }
    
    .features-showcase,
    .benefits-showcase,
    .security-features {
        flex-direction: row;
        max-width: none;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .auth-body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .auth-card {
        padding: 32px 24px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .verification-input {
        gap: 8px;
    }
    
    .code-input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }
    
    .features-showcase,
    .benefits-showcase,
    .security-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-item,
    .benefit-item,
    .security-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 12px;
        padding-top: 20px;
    }
    
    .auth-card {
        padding: 20px 16px;
        margin: 0;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .verification-input {
        gap: 6px;
    }
    
    .code-input {
        width: 36px;
        height: 44px;
        font-size: 16px;
    }
}