/* Modern Auth Forms CSS - SiteLead Style */

.leadinfo-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.leadinfo-auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.leadinfo-auth-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

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

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

.leadinfo-auth-logo img {
    max-width: 180px;
    height: auto;
}

.leadinfo-auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.leadinfo-auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.leadinfo-auth-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.leadinfo-auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

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

.form-group input::placeholder {
    color: #9ca3af;
}

.form-help {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: #667eea;
}

.form-checkbox span {
    font-size: 14px;
    color: #374151;
}

.form-checkbox a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 16px 32px;
}

.auth-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

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

.auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.leadinfo-auth-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.leadinfo-auth-footer p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.leadinfo-auth-footer p:last-child {
    margin-bottom: 0;
}

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

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

.small-text {
    font-size: 12px !important;
    color: #9ca3af !important;
}

/* Loading state */
.leadinfo-auth-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.leadinfo-auth-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
    .leadinfo-auth-container {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .leadinfo-auth-header h1 {
        font-size: 24px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        margin-left: 0;
    }
}